Share your code. Components are building blocks, you are the architect.

utils/sequence
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Transforms a [Traversable](https://github.com/fantasyland/fantasy-land#traversable)

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/sequence in your project
npm i @bit/bit.ramda.utils.sequence
Copied

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

*