module folktale/fantasy-land/infix

Method versions of the fantasy-land functions, supporting the structure::fn(...) syntax.

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.

Documentation

Method versions of the fantasy-land functions, supporting the structure::fn(...) syntax.

Properties

Convenience

apply: infix(applicativeValue)

Applies the function inside an applicative to the value of another applicative.

Experimental
bimap: infix(transformLeft, transformRight)

Maps one function over each side of a Bifunctor.

Experimental
chain: infix(transformation)

Transforms a monad with an unary function.

Experimental
concat: infix(aSemigroup)

Joins two semigroups.

Experimental
empty: infix()

Returns the identity object for a monoid.

Experimental
equals: infix(aSetoid)

Compares two setoids for equality.

Experimental
map: infix(transformation)

Transforms the contents of a Functor.

Experimental
of: infix(value)

Constructs an applicative containing the given value.

Experimental

Source Code

Defined in source/fantasy-land/infix.js at line 15, column 0
{
  apply: require('./apply').infix,
  bimap: require('./bimap').infix,
  chain: require('./chain').infix,
  concat: require('./concat').infix,
  empty: require('./empty').infix,
  equals: require('./equals').infix,
  map: require('./map').infix,
  of: require('./of').infix
}
Stability
experimental
Licence
MIT
Module
folktale/fantasy-land/infix
On This Page
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)