reverse(Iterators.filter)
can be incorrect if predicate is impure
#50440
Labels
domain:iteration
Involves iteration or the iteration protocol
From docstring of
reverse
yet consider
personally I think
reverse(f::Filter)
should just be removed; it cannot be implemented correctly without knowing the purity of the predicate. another option is to add a warning in the docs? or maybe a third option is to somehow dispatchreverse
only whenflt
can be proven pure---not sure how this is technically possible though.The text was updated successfully, but these errors were encountered: