chain

Transforms a monad with an unary function.

This feature is experimental!

This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.

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.

Experimental
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
experimental
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/)