Hi,
I am looking for something which operates similarly as doseq but in
case of more than one binding traverses every sequence only one. I.e.
wanted result:
(doseq [x '(A B C) y '(1 2 3)] (println (list x y)))
should produce:
(A 1)
(B 2)
(C 3)
OK I know that in this particular case there are
one of the following should give you a reasonable solution
http://clojuredocs.org/clojure_contrib/clojure.contrib.seq/indexed
http://clojuredocs.org/clojure_contrib/clojure.contrib.seq/indexed
http://clojuredocs.org/clojure_core/clojure.core/map-indexed
sorry .. I was too quick in responding .. You are talking about something
else..
Sunil.
On Thu, Jan 20, 2011 at 6:40 PM, Sunil S Nandihalli
sunil.nandiha...@gmail.com wrote:
one of the following should give you a reasonable solution
On Thu, Jan 20, 2011 at 8:06 AM, kony kulakow...@gmail.com wrote:
Hi,
I am looking for something which operates similarly as doseq but in
case of more than one binding traverses every sequence only one. I.e.
wanted result:
(doseq [x '(A B C) y '(1 2 3)] (println (list x y)))
should
On Thu 20/01/11 13:06 , kony kulakow...@gmail.com sent:
Hi,
I am looking for something which operates similarly as doseq but in
case of more than one binding traverses every sequence only one. I.e.
wanted result:
(doseq [x '(A B C) y '(1 2 3)] (println (list x y)))
should produce: