This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-25
Channels
- # aleph (1)
- # beginners (72)
- # boot (3)
- # cider (28)
- # cljs-dev (193)
- # cljsrn (11)
- # clojure (73)
- # clojure-brasil (3)
- # clojure-gamedev (2)
- # clojure-russia (6)
- # clojure-spec (30)
- # clojure-uk (26)
- # clojured (1)
- # clojurescript (32)
- # code-reviews (9)
- # core-async (4)
- # datascript (5)
- # datomic (9)
- # dirac (38)
- # fulcro (23)
- # garden (11)
- # leiningen (1)
- # luminus (11)
- # lumo (6)
- # off-topic (17)
- # quil (2)
- # re-frame (2)
- # reagent (3)
- # ring (3)
- # shadow-cljs (12)
- # spacemacs (4)
- # sql (2)
- # unrepl (85)
- # vim (3)
Hey guys, quick question. Does anybody has experience using halt-when
on channels? I haven't been able to find any examples of it :(
@carocad I've never used it, but was able to do this based on the docs - the channel closes when the input matches the predicate https://gist.github.com/noisesmith/335606e11056ae6aca0fe983e92d6bf9
@carocad - I just updated the paste to also use the optional retf arg - seems like it gets the buffer of the channel as the first arg, and the value that was rejected as the second
@noisesmith that is great ! Thanks for the gist. I will test this when I have the chance but I think that your input was more than sufficient 🙂