Mathematica > Core Language > Functional Programming > Functional Iteration >
Mathematica > Core Language > Procedural Programming > Looping Constructs > Functional Iteration >

TakeWhile

Updated In 7 Graphic
TakeWhile[list, crit]
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.
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team