It comes up when I would otherwise use (take-while pred coll), but I need to include the first item for which (pred item) is false.
Includes transducer arity of take-until
Includes inclusion in transducer generative tests
Yeah, halt-when is a little tricky to use in transducible contexts other than transduce.
I wanted to suggest: `(sequence (halt-when p conj) s)` but sequence doesn't support stopping short on a reduced value so that won't work.
It's not lazy but this is one way to write take-until with halt-when:
And this is definitely superseded by `halt-when`
I feel like this is superceded by CLJ-1906