PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Functional Programming
>
Functional Iteration
>
Mathematica
>
Core Language
>
Procedural Programming
>
Looping Constructs
>
Functional Iteration
>
Built-in
Mathematica
Symbol
Applying Functions Repeatedly
Tutorials »
|
Length
Position
TakeWhile
See Also »
|
Elements of Lists
Functional Iteration
Functional Programming
Summary of New Features in 7.0
New in 6.0: List Manipulation
More About »
LengthWhile
LengthWhile
[
list
,
crit
]
gives the number of continuous elements
e
i
starting at the beginning of
list
for which
crit
[
e
i
]
is
True
.
MORE INFORMATION
LengthWhile
can be used on an object with any head, not necessarily
List
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Find the length of the run of elements below 10:
In[1]:=
Out[1]=
Scope
(1)
Generalizations & Extensions
(1)
Applications
(1)
Properties & Relations
(3)
Possible Issues
(1)
SEE ALSO
Length
Position
TakeWhile
TUTORIALS
Applying Functions Repeatedly
MORE ABOUT
Elements of Lists
Functional Iteration
Functional Programming
Summary of New Features in 7.0
New in 6.0: List Manipulation
New in 6 | Last modified in 7
© 2008 Wolfram Research, Inc.