processing a seq until a pred function is true
clojure, sequence
Solution
You can use `take-while` along with `not`
user=> (take-while (comp not even?) [3 9 2 4 6 10 1 2])
(3 9)
Problem
I am processing a sequence in clojure. I would like to retrieve elements until a predicate function is true. How do I do that?