This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-03
Channels
- # admin-announcements (2)
- # beginners (18)
- # boot (118)
- # cider (12)
- # cljs-dev (12)
- # cljsrn (24)
- # clojure (142)
- # clojure-art (4)
- # clojure-bangladesh (3)
- # clojure-ireland (1)
- # clojure-italy (7)
- # clojure-norway (4)
- # clojure-poland (207)
- # clojure-russia (101)
- # clojurescript (108)
- # clojurewerkz (2)
- # core-async (6)
- # css (8)
- # data-science (23)
- # datomic (31)
- # devcards (2)
- # emacs (8)
- # funcool (25)
- # hoplon (34)
- # immutant (78)
- # ldnclj (7)
- # lein-figwheel (4)
- # leiningen (6)
- # luminus (35)
- # off-topic (1)
- # om (119)
- # onyx (43)
- # parinfer (29)
- # proton (11)
- # re-frame (25)
- # remote-jobs (1)
- # slack-help (1)
- # spacemacs (3)
- # yada (10)
At the end of http://funcool.github.io/cats/latest/#applicative there is :
(require '[cats.monad.maybe :as maybe])
(pure maybe/maybe-monad 5)
;; => #<Just 5>
has maybe-monad
been removed ?Is it maybe
now? : https://github.com/funcool/cats/blob/master/src/cats/monad/maybe.cljc#L304
Also, unrelated but I asked a question there : http://stackoverflow.com/q/35770498/1327651
also, why do these don't work, given that (just [1 2 3]) is a wrapped value ?
(fmap inc (just [1 2 3]))
(fmap inc (map just [1 2 3]))
@nha: it's cats.monad.maybe/context
, sorry https://github.com/funcool/cats/blob/master/src/cats/monad/maybe.cljc#L170
just out of curiosity (as I think I remember you do scala), is there an equivalent of their flatten that resolves async values (note : I don't do scala so I may be wrong about that)