Step - any

any ยท category: Filters

Keeps a list where at least one element matches the predicate.

Forms

any(arg1: any)

Example

g.inject([1, 5, 3]).any(P.gt(4)).next()   // [1, 5, 3]