chain

Transforms a monad with an unary function.

Signature

chain(monad, transformation)
forall C, a, b:
  (C a, (a) => C b) => C b
where C is Chain

Documentation

Transforms a monad with an unary function.

Properties

Convenience

curried()

Transforms a monad with an unary function.

infix(transformation)

Transforms a monad with an unary function.

Experimental

Source Code

Defined in source/fantasy-land/chain.js at line 30, column 0
(monad, transformation) =>
  isNew(monad) ?  monad[flChain](transformation)
: isOld(monad) ?  warn(monad.chain(transformation))
: /*otherwise*/   unsupported(monad)
Stability
stable
Licence
MIT
Module
folktale/fantasy-land/chain
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • @boris-marinov
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)