Methods

the_oneΒΆ

the_one(something:Eachable1, predicate:Any)

Find the only element that satisfies the predicate. Throws TheOneFail exception if there are no elements that satisfy the predicate or if there is more than one element that satisfies the predicate.
Source: stdlib.ngs:230

Returns

The only element that satisfies the predicate.