Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Dec 4, 2024
1 parent e6da2bf commit 854774e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/readme/transducers.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Transducer example:
(do
(def xform
(comp
(filter odd?)
(map #(* 100 %))))
(filter odd?) ;; returns a transducer that filters odd
(map #(* 100 %)))) ;; returns a mapping transducer for multiplying by 100

(transduce xform conj (range 0 1000)))

Expand Down

0 comments on commit 854774e

Please sign in to comment.