In chapter 3, Dropping values. I think the description is incorrect for drop(while:)
.
… until the first time that predicate is met
should be:
… until the first time that predicate is not met
or
… until the first time that predicate returns false
The same for just below:
As soon as the condition is met, values will start flowing…
As soon as the condition is not met, values will start flowing
or
As soon as the condition returns false, values will start flowing
From the Apple docs:
drop(while:)
Omits elements from the upstream publisher until a given closure returns false, before republishing all remaining elements.