This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-19
Channels
- # bangalore-clj (35)
- # beginners (42)
- # boot (89)
- # cider (9)
- # clara (2)
- # cljs-dev (29)
- # cljsjs (3)
- # cljsrn (14)
- # clojars (9)
- # clojure (332)
- # clojure-brasil (1)
- # clojure-dev (5)
- # clojure-italy (4)
- # clojure-russia (36)
- # clojure-spec (38)
- # clojure-uk (65)
- # clojurescript (114)
- # clr (11)
- # community-development (105)
- # core-async (10)
- # cursive (4)
- # datascript (1)
- # datomic (58)
- # defnpodcast (3)
- # emacs (4)
- # hoplon (7)
- # juxt (3)
- # keechma (8)
- # off-topic (7)
- # om (109)
- # om-next (8)
- # onyx (26)
- # pedestal (3)
- # planck (8)
- # re-frame (76)
- # reagent (28)
- # rum (25)
- # spacemacs (2)
- # specter (35)
- # untangled (31)
- # yada (27)
https://gist.github.com/ghadishayban/f905be564d1d37ba9fa4d77b0d5e8848 A flexible generator facility, expressed functionally. Probably 80% of the way to yield
. Examples at the bottom
It allows a lot of iterator like things to be written in a clear manner, so perhaps this of general interest. I'm curious to hear from people.
I've made a slightly longer post on the mailing list https://groups.google.com/d/msg/clojure-dev/89RNvkLdYc4/PAJh8gfmDAAJ
The produce!
function is used in a completely different way in 2 arg and 3 arg version, yet it has the same name in the arglist. For me this is at least a very confusing interface, if not a poor design. I'd expected something simpler along the lines of how clojure.core.reducers/reduce
handles the missing initial state.