Hi, On 19 Okt., 13:16, Laurent PETIT <laurent.pe...@gmail.com> wrote:
> user=> (def c ["a" "b" "c" "d" "e" "f"]) > #'user/c > user=> (map vector c (cycle (range x))) > (["a" 0] ["b" 1] ["c" 2] ["d" 3] ["e" 4] ["f" 0]) And to promote some 1.2 goodness: map-indexed. user=> (map-indexed #(vector %2 (rem %1 5)) "abcdefghijklmn") ([\a 0] [\b 1] [\c 2] [\d 3] [\e 4] [\f 0] [\g 1] [\h 2] [\i 3] [\j 4] [\k 0] [\l 1] [\m 2] [\n 3]) Sincerely Meikel -- 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