Hi
(map (fn [x] [:div x x]) ["abc" "xyz"])
in Clojure REPL the result is [[:div "abc" "abc"] [:div "xyz" "xyz"]],
but when executed in browser (js), clojurescript returns
a flatten seq: [:div "abc" "abc :div "xyz" "xyz"]
how to handle this in clojrescript?
I am trying
(doseq [x (map (fn [x] [:div x x]) ["abc" "xyz"])]
(js/console.log x))
:div
"abc"
"abc"
:div
"xyz"
"xyz"
I am expecting:
(doseq [x (map (fn [x] [:div x x]) ["abc" "xyz"])]
(js/console.log x))
[:div "abc" "abc"]
[:div "xyz" "xyz"]
regards
-Taoufik