|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
LengthWhile
LengthWhile[list, crit]
gives the number of continuous elements
starting at the beginning of list for which
is True.
DetailsDetails
- LengthWhile can be used on an object with any head, not necessarily List.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Find the length of the run of elements below 10:
| In[1]:= |
| Out[1]= |
New in 6 | Last modified in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
