4 ms·
Agreed - a concrete example is the threading macros: (defn calculate* [] (->> (range 10) (filter odd? ,,,) (map #(* % %) ,,,
by millstone 7y ago
Agreed - a concrete example is the threading macros:
(defn calculate* []
(->> (range 10)
(filter odd? ,,,)
(map #(* % %) ,,,)
(reduce + ,,,)))
This is nominally a library as it can be implemented via the language primitives. But in practice this occupies the same space as Haskell's do-notation, and the learner cannot ignore it. The lack of special syntax becomes an implementation detail.