apply

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

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

apply(applicativeFunction, applicativeValue)
forall F, a, b:
  (F (a) => b, F a) => F b
where F is Apply

Documentation

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

Properties

Convenience

curried()

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

Experimental
infix(applicativeValue)

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

Experimental

Source Code

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