Oops... that should have been:
If '$data(arr(key),index) { // If the array already has the key, it is set 
into the variable index, otherwise:
    Set index = $Increment(arr) // atomically increment index, and set the 
key to that value in the array
    Set arr(key) = index
    Set index(index) = key  // Set up reverse index
}
// Do whatever I want with the index

Reply via email to