remove_until
like API, removes all items until a predicate matches
#55
Labels
remove_until
like API, removes all items until a predicate matches
#55
The idea is similar to #47 but instead of being able to skip items, it would remove all items until a predicate matches (excluding that element).
For example in Rust pseudo code:
Currently this requires to either peek and pop:
Or constant
pops()
with a push of the removed item which does not match the predicate.The text was updated successfully, but these errors were encountered: