- Index
- »
- axon
- »
- func:eachWhile
def
func:eachWhile
eachWhile(val, fn)
Iterate the items of a collection until the given function returns non-null. Once non-null is returned, then break the iteration and return the resulting object. Return null if the function returns null for every item.
- Grid: iterate the rows as (row, index)
- List: iterate the items as (val, index)
- Dict: iterate the name/value pairs (val, name)
- Str: iterate the characters as numbers (char, index)
- Range: iterate the integer range (integer)
- Stream: iterate items as (val); see Streams