Add take-until

Description

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.

1 2 (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

Environment

None

Status

Assignee

Unassigned

Reporter

Alexander Taggart

Labels

Approval

Triaged

Patch

Code and Test

Priority

Major
Configure