Skip to content

Commit

Permalink
added doseq example for maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Apr 1, 2024
1 parent 4b41189 commit 6a2a215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/com/github/jlangch/venice/core.venice
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@
"(doseq [x (range 10) :when (odd? x)] (print x))"
"(doseq [x (range 10) :when (odd? x)] (print (* x 2)))"
"(doseq [x [1 2 3] y [1 2 3]] (println [x y]))"
"(doseq [[x y] [[0 1] [1 2]]] (println [x y]))",
"(doseq [[x y] [[0 1] [1 2]]] (println [x y]))"
"(doseq [[k v] {:a 1 :b 2}] (println [k v]))",
"""
(doseq [[c vals] (group-by count ["a" "as" "asd" "aa" "asdf" "qwer"])]
(println c vals))
Expand Down

0 comments on commit 6a2a215

Please sign in to comment.