)),
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
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
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
*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
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