Discussion: https://groups.google.com/d/topic/clojure-dev/NaAuBz6SpkY/discussion
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.
(take-while pos? [1 2 0 3]) => (1 2) (take-until zero? [1 2 0 3]) => (1 2 0)
Patch: clj-1451.patch
Includes transducer arity of take-until
Includes inclusion in transducer generative tests
Discussion: https://groups.google.com/d/topic/clojure-dev/NaAuBz6SpkY/discussion
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.
(take-while pos? [1 2 0 3]) => (1 2) (take-until zero? [1 2 0 3]) => (1 2 0)Patch: clj-1451.patch
Includes transducer arity of take-until
Includes inclusion in transducer generative tests