Qurak

LengthWhile

Available

Returns the length of the longest prefix for which a predicate holds.

LengthWhile[list, crit]
LengthWhile[{2, 4, 6, 7, 8}, EvenQ] → 3

Topics

Related

All 6300 functions · Use this from an MCP client