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

LengthWhile

Updated In 7 Graphic
LengthWhile[list, crit]
gives the number of continuous elements ei starting at the beginning of list for which crit[ei] is True.
New in 6 | Last modified in 7
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team