cats
cats copied to clipboard
Category Theory and Algebraic abstractions for Clojure and ClojureScript.
...because this fails to load https://www.niwi.nz/_assets/asciidoctor-styles/simple-red-titles/stylesheet.css
Versions used: - `[org.clojure/clojure "1.10.1"]` - `[funcool/cats "2.3.6"]` - `[funcool/promesa "5.1.0"]` ns form: ``` clojure (ns user (:require [cats.builtin] [cats.core :refer [bind return alet mlet fmap fapply]] [cats.monad.maybe :refer [just]]...
The documentation is already excellent. We could make it even more consistent by having runnable examples (i. e. running the created jupyter notebook using mybinder) with feedback to signal i....
Using cats in CIDER + nREPL yields: ``` ;; CIDER 0.22.0snapshot (package: 20190326.1752), nREPL 0.6.0 ;; Clojure 1.10.0, Java 1.8.0_201 user> (require '[cats.monad.exception :as exc]) (exc/try-on 1) nilError printing return...
### How `def`/`defn`s should be named? There are two pretty obvious choices: `file-path->*config-try-m` seems too "wordy". But `file-name->*config` Is ambiguous since it doesn't specify the context - just says that...
I'm using 2.1.0 and trying to run the foldr example `(foldl (fn [acc v] (+ acc v)) 0 [1 2 3 4 5]) ` It produced the following error ```...
Docs for fapply https://github.com/funcool/cats/blob/4367a18f8ee8f4d6ebf322939b1cf96cdbfb667a/src/cats/core.cljc#L190 Shouldn't it be `the same context as af`? Using cats 2.2.0: ```clojure (m/fapply (maybe/just inc) (either/left 5)) => # (m/fapply (maybe/just inc) (either/right 5)) => #...
Hi! Seems like when one of `alet` args in not wrapped into monad it returns the value of the last of that arg. Better show than explain: ``` err.core=> (alet...