find()
Finds the first matching value by Atom equality.
Signature
find(iterable, value)
Parameters
Any iterable and any value to search for.
Returns
Matching key or index, or null.
Behavior
Uses ordinary iteration order and performs no writes. A matching dictionary key can itself be null.
Errors
Noniterable input or invalid packed view.
Example
assert(find({first = 2, last = 2}, 2) == 'first')