Liking cljdoc? Tell your friends :D

monads.util


apclj

Lift function application.

Lift function application.
sourceraw docstring

currycljmacro

(curry arity f)

Curry the function f.

Curry the function f.
sourceraw docstring

curryfncljmacro

(curryfn & sigs)
source

defcurryfncljmacro

(defcurryfn name doc-string? attr-map? [params*] prepost-map? body)
source

deflift-m-ncljmacro

(deflift-m-n n)
source

deflift-m-nscljmacro

(deflift-m-ns lo hi)
source

ecurryclj

(ecurry arity f)

Curry the function f.

Curry the function f.
sourceraw docstring

fold-mclj

(fold-m f acc xs)

Analogous to reduce, except the result of f is in a monad: f is a -> b -> m a.

Analogous to reduce, except the result of f is in a monad: f is a -> b -> m a.
sourceraw docstring

guardclj

(guard p)

If p is truthy, return (return nil), otherwise mzero, halting the current computation.

If p is truthy, return (return nil), otherwise mzero, halting the
current computation.
sourceraw docstring

lazy-paircljmacro

(lazy-pair a b)
source

lift-m*clj

(lift-m* f)
(lift-m* f & m-args)
source

lift-m-2clj

(lift-m-2 f)
(lift-m-2 f m1)
(lift-m-2 f m1 m2)

As lift-m but for binary functions: transforms a -> b -> c into m a -> m b -> m c. Likewise for lift-m-3, etc.

As lift-m but for binary functions: transforms a -> b -> c into m a
-> m b -> m c. Likewise for lift-m-3, etc.
sourceraw docstring

lift-m-3clj

(lift-m-3 f)
(lift-m-3 f m-1)
(lift-m-3 f m-1 m-2)
(lift-m-3 f m-1 m-2 m-3)
source

lift-m-4clj

(lift-m-4 f)
(lift-m-4 f m-1)
(lift-m-4 f m-1 m-2)
(lift-m-4 f m-1 m-2 m-3)
(lift-m-4 f m-1 m-2 m-3 m-4)
source

lift-m-5clj

(lift-m-5 f)
(lift-m-5 f m-1)
(lift-m-5 f m-1 m-2)
(lift-m-5 f m-1 m-2 m-3)
(lift-m-5 f m-1 m-2 m-3 m-4)
(lift-m-5 f m-1 m-2 m-3 m-4 m-5)
source

lift-m-6clj

(lift-m-6 f)
(lift-m-6 f m-1)
(lift-m-6 f m-1 m-2)
(lift-m-6 f m-1 m-2 m-3)
(lift-m-6 f m-1 m-2 m-3 m-4)
(lift-m-6 f m-1 m-2 m-3 m-4 m-5)
(lift-m-6 f m-1 m-2 m-3 m-4 m-5 m-6)
source

lift-m-7clj

(lift-m-7 f)
(lift-m-7 f m-1)
(lift-m-7 f m-1 m-2)
(lift-m-7 f m-1 m-2 m-3)
(lift-m-7 f m-1 m-2 m-3 m-4)
(lift-m-7 f m-1 m-2 m-3 m-4 m-5)
(lift-m-7 f m-1 m-2 m-3 m-4 m-5 m-6)
(lift-m-7 f m-1 m-2 m-3 m-4 m-5 m-6 m-7)
source

lift-m-8clj

(lift-m-8 f)
(lift-m-8 f m-1)
(lift-m-8 f m-1 m-2)
(lift-m-8 f m-1 m-2 m-3)
(lift-m-8 f m-1 m-2 m-3 m-4)
(lift-m-8 f m-1 m-2 m-3 m-4 m-5)
(lift-m-8 f m-1 m-2 m-3 m-4 m-5 m-6)
(lift-m-8 f m-1 m-2 m-3 m-4 m-5 m-6 m-7)
(lift-m-8 f m-1 m-2 m-3 m-4 m-5 m-6 m-7 m-8)
source

map-mclj

(map-m f args)

(a -> m b) -> [a] -> m [b]

(a -> m b) -> [a] -> m [b]
sourceraw docstring

mcatclj

(mcat f xs)
source

msumclj

(msum addends)

Add all the addends together using mplus.

Add all the addends together using mplus.
sourceraw docstring

mwhencljmacro

(mwhen p acc)

Execute the computation acc if p is truthy.

Execute the computation acc if p is truthy.
sourceraw docstring

sequence-mclj

(sequence-m ms)

Transform a sequence of monadic values [m a] into a monadic value which is a sequence, m [a].

Transform a sequence of monadic values [m a] into a monadic value
which is a sequence, m [a].
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close