Liking cljdoc? Tell your friends :D

cats.monad.either

The Either monad implementation and helper functions for working with either related types.

Also commonly known as Error monad.

(require '[cats.monad.either :as either])

(either/right 1)
;; => #<Right [1]>

(either/left 1)
;; => #<Left [1]>
The Either monad implementation and helper functions
for working with either related types.

Also commonly known as Error monad.

    (require '[cats.monad.either :as either])

    (either/right 1)
    ;; => #<Right [1]>

    (either/left 1)
    ;; => #<Left [1]>
raw docstring

either-transformerclj/s

(either-transformer inner-monad)

The Either transformer constructor.

The Either transformer constructor.
sourceraw docstring

either?clj/s

(either? v)

Return true in case of v is instance of Either monad.

Return true in case of `v` is instance
of Either monad.
sourceraw docstring

from-eitherclj/sdeprecated

(from-either mv)

Return inner value of either monad.

This is a specialized version of cats.core/extract for Either monad.

The use of this function is DEPRECATED and cats.core/extract should be used.

Return inner value of either monad.

This is a specialized version of `cats.core/extract`
for Either monad.

The use of this function is DEPRECATED and
`cats.core/extract` should be used.
sourceraw docstring

Leftcljs

source

leftclj/s

(left)
(left v)

A Left type constructor.

A Left type constructor.
sourceraw docstring

left?clj/s

(left? v)

Return true if v is an instance of Left type.

Return true if `v` is an instance
of Left type.
sourceraw docstring

(right)
(right v)

A Right type constructor.

A Right type constructor.
sourceraw docstring

source

right?clj/s

(right? v)

Return true if v is an instance of Right type.

Return true if `v` is an instance
of Right type.
sourceraw docstring

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

× close