sequence

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
3
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
3 KB
Transforms a [Traversable](https://github
1 contributor
Install sequence as a package?
Copied
npm i @bit/justin-capalbo.ramda.sequence
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
sequence (
of:Function,
traversable:*
) : *

Transforms a Traversable of Applicative into an Applicative of Traversable.

Dispatches to the sequence method of the second argument, if present.

Example
R.sequence(Maybe.of, [Just(1), Just(2), Just(3)]);   //=> Just([1, 2, 3])
     R.sequence(Maybe.of, [Just(1), Just(2), Nothing()]); //=> Nothing()

     R.sequence(R.of, Just([1, 2, 3])); //=> [Just(1), Just(2), Just(3)]
     R.sequence(R.of, Nothing());       //=> [Nothing()]
Arguments
of: Function
traversable: *
Returns
*

Help and resources