+ 1

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

19th Aug 2016, 7:18 AM
ŠœŠøхŠ°Š¹Š»Š¾ Ā«GhostKUĀ» ŠžŃŠ°Š“чŠøŠ¹
ŠœŠøхŠ°Š¹Š»Š¾ Ā«GhostKUĀ» ŠžŃŠ°Š“чŠøŠ¹ - avatar
1 Answer
+ 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