This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Using takeWhile to select consecutive leading elements that match a predicate, stopping at the first mismatch.
You've completed the free preview. Subscribe to unlock every lesson in every course.