Methods

firstΒΆ

first(e:Eachable1, predicate:Any)

Find first element in e that satisfies the predicate.
Source: stdlib.ngs:209

Returns

Either the element or null if element was not found.

Example

(10..20).first(F(x) x % 3 == 0)  # 12 - first item divisible by 3