You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exists_where operation takes a const Iterable& which makes it fail when used after fn::transform or other operators... I think that ones that generate seq? The issue seems to be that seq.begin is a non-const operation because seq is consumable.
I think that exists_where should work like for_each or foldl, both of which take Iterable&&. It's really just a foldl with a fixed algorithm that can return early.
The
exists_where
operation takes aconst Iterable&
which makes it fail when used afterfn::transform
or other operators... I think that ones that generateseq
? The issue seems to be thatseq.begin
is a non-const operation becauseseq
is consumable.I think that
exists_where
should work likefor_each
orfoldl
, both of which takeIterable&&
. It's really just afoldl
with a fixed algorithm that can return early.First invocation works, second one doesn't:
The text was updated successfully, but these errors were encountered: