Open kirisakow opened 1 year ago
(2nd ed)
dropwhile, which is the opposite of takewhile, skips items from an iterator until the predicate function returns True for the first time:
dropwhile
takewhile
True
dropwhile, which is the opposite of takewhile, skips items from an iterator as long as the predicate function returns True:
Thank you for the report! It should have read "until the predicate function returns False for the first time".
(2nd ed)
What the book says
What the book should say