1
for when (clj.social)
submitted 4 months ago by planet@clj.social to c/clojure@lemmy.ml

for when

https://clojure-diary.gitlab.io/2024/07/01/for-when.html

Code ;; for_when.clj (for [x [:a :b] y (range 5) :when (odd? y)] [x y]) (for [x [:a :b] y '(1 3)] [x y]) (let [odd-y (filter odd? (range 5))] (for [x [:a :b] y odd-y] [x y])) (for [x [:a :b :c] y '(1 3)] [x y]) (for [x (range 1 7)...

#clojure #clj #cljs !clojure@lemmy.ml @clojure

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 01 Jul 2024
1 points (100.0% liked)

Clojure programming language discussion

451 readers
2 users here now

Clojure is a Lisp that targets JVM and JS runtimes

Finding information about Clojure

API Reference

Clojure Guides

Practice Problems

Interactive Problems

Clojure Videos

The Clojure Community

Clojure Books

Tools & Libraries

Clojure Editors

Web Platforms

founded 4 years ago
MODERATORS