Previously until-like helper functions stored the elements in a Vec first, and then called collect to build the return value.
This PR re-implements the functions to make them directly collect the values instead of storing them in a Vec first.
Maybe we should add some tests to check that errors are properly returned?
Previously
until
-like helper functions stored the elements in aVec
first, and then calledcollect
to build the return value. This PR re-implements the functions to make them directlycollect
the values instead of storing them in aVec
first. Maybe we should add some tests to check that errors are properly returned?