3
submitted 2 months ago by [email protected] to c/[email protected]

Understanding Clojure reduce better

https://clojure-diary.gitlab.io/2025/06/28/understanding-clojure-reduce-better.html

Code (defn add [a b] (+ a b)) (reduce add [1 2 3 4 5]) (reduce add 1 [2 3 4 5]) (reduce add 3 [3 4 5]) ;; (reduce add [3 3 4 5]) (reduce add 3 [3 4 5]) (reduce add 6 [4 5]) (reduce add 10 [5]) (remove #(= % :a) [:a :b :c :d]) (defn...

#clojure #clj #cljs [email protected] @clojure

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 28 Jun 2025
3 points (100.0% liked)

Clojure programming language discussion

606 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 5 years ago
MODERATORS