this post was submitted on 01 Jul 2024
1 points (100.0% liked)

Clojure programming language discussion

440 readers
1 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
 

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 [email protected] @clojure

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here