maplist for core?

2012-09-30 Thread Marc Dzaebel
)), but if you use them recursivly, code reads badly. So my proposal would be to have a kind of following function in the core: (defn maplist ([s] (maplist identity s)) ([f s] (when-let [s (seq s)] (lazy-seq (cons (f s) (maplist f (next s))) ;(maplist [1 2 3]) - ((1 2 3) (2 3) (3)) Questions

Re: maplist for core?

2012-09-30 Thread Stuart Sierra
Never had a use for such a thing, myself, but it sounds like a reasonable candidate for https://github.com/clojure/core.incubator at least. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: maplist for core?

2012-09-30 Thread Ben Wolfson
of following function in the core: (defn maplist ([s] (maplist identity s)) ([f s] (when-let [s (seq s)] (lazy-seq (cons (f s) (maplist f (next s))) ;(maplist [1 2 3]) - ((1 2 3) (2 3) (3)) Questions: Would such a method help more developers? Is there a conceptional reason, to omit

Re: maplist for core?

2012-09-30 Thread Marc Dzaebel
*expand *looks really useful too. -- 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

Re: maplist for core?

2012-09-30 Thread Marc Dzaebel
Well, I might have to collect usecases. -- 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