take until

Take elements of the input until a predicate is true.

Signature

> take until (predicate)

Parameters

  • predicate: the predicate that element(s) must not match

Examples

Take until the element is positive

> echo [-1 -2 9 1] | take until $it > 0