utils/nth
module
Functions
nth( index, iterable ) → null | Tmodule:utils/nth~nthReturns
nth(starts from0of course) item of the giveniterable.If the iterable is a generator, then it consumes all its items. If it's a normal iterator, then it consumes all items up to the given index. Refer to the Iterators and Generators guide to learn differences between these interfaces.
Type parameters
T
Parameters
index : numberiterable : Iterable<T>
Returns
null | T