+ 1

What is the difference between filter() and takewhile()?

19th Aug 2016, 7:18 AM
Михайло «GhostKU» Осадчий
Михайло «GhostKU» Осадчий - avatar
1 Réponse
+ 10
filter() gets ALL items of the list that match the predicate whereas takewhile() gets all items until an element occurs that doesn't match the predicate
24th Aug 2016, 7:57 PM
R4stafa