I want to partition a sequence based on the values of a predicate so that every true starts a new sequence in the partition. Here is an example of how partition-with could be used:
(partition-when true? '(true false false true false true true)) -> '((true false false) (true false) (true) (true)) I have written this lazy-seq and recursion. However, I was wondering if there is a way to do this with core Clojure sequence primitives. Any suggestions? Asim -- San Francisco, CA -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en