You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples for cats.core/traverse throw "missing protocol method" exceptions in both Clojure (1.8.0) and ClojureScript (1.9.293). Using the example from the API documentation:
boot.user> (require '[cats.context :as ctx]
'[cats.core :as m]
'[cats.monad.maybe :as maybe])
;; => nil
boot.user> (defn inc-if-even
[n]
(if (even? n)
(maybe/just (inc n))
(maybe/nothing)))
;; => #'boot.user/inc-if-even
boot.user> (ctx/with-context maybe/context
(m/traverse inc-if-even [2 4]))
java.lang.IllegalArgumentException: No implementation of method: :-get-context of protocol: #'cats.protocols/Contextual found for class: clojure.lang.PersistentVector
The text was updated successfully, but these errors were encountered:
The examples for
cats.core/traverse
throw "missing protocol method" exceptions in both Clojure (1.8.0) and ClojureScript (1.9.293). Using the example from the API documentation:The text was updated successfully, but these errors were encountered: