gives elements ei from the beginning of list, continuing so long as crit[ei] is True.
- TakeWhile can be used on an object with any head, not necessarily List.
Basic Examples (2)
Take elements while they are all even:
Use a pure function to take elements while they are all below 10:
Generalizations & Extensions (1)
Properties & Relations (3)
Introduced in 2007
Updated in 2008