ap

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
9
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
2 KB
ap applies a list of functions to a list of values.
1 contributor
Install ap as a package?
Copied
npm i @bit/justin-capalbo.ramda.ap
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
ap (
applyF:*,
applyX:*
) : *

ap applies a list of functions to a list of values.

Dispatches to the ap method of the second argument, if present. Also treats curried functions as applicatives.

Example
R.ap([R.multiply(2), R.add(3)], [1,2,3]); //=> [2, 4, 6, 4, 5, 6]
     R.ap([R.concat('tasty '), R.toUpper], ['pizza', 'salad']); //=> ["tasty pizza", "tasty salad", "PIZZA", "SALAD"]

     // R.ap can also be used as S combinator
     // when only two functions are passed
     R.ap(R.concat, R.toUpper)('Ramda') //=> 'RamdaRAMDA'
Arguments
applyF: *
applyX: *
Returns
*

Help and resources