Skip to content

SelectFirst

Returns the first element satisfying a predicate.

$ wo 'SelectFirst[{1, 2, 3, 4}, # > 2 &]'
3