apply

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

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.

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
stable
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/)