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 157141e commit ed48935
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/readme/transducers.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Transducer example:
(filter odd?) ;; returns a transducer that filters odd values
(map #(* 100 %)))) ;; returns a mapping transducer for multiplying values by 100

;; apply the transducers
(transduce xform conj (range 0 1000)))

; => [100 300 500 700 900 .... 99900]
Expand Down

0 comments on commit ed48935

Please sign in to comment.