Skip to content

Instantly share code, notes, and snippets.

View titonbarua's full-sized avatar

Titon Barua titonbarua

  • Chittagong, Bangladesh
View GitHub Profile
@titonbarua
titonbarua / something.clj
Created November 17, 2017 13:33
Cascaded map+filter operations to transform a sequence of data in clojure
(filter
;; The filtering function.
(fn [x] (<= 0 x 100))
;; The sequence to be filtered.
(map
;; The mapping function.
(fn [x] (* x 3))