fp-ts-fluture
v0.6.5
Published
fp-ts bindings for Fluture
Downloads
5,707
Readme
Documentation
Example
import { reject, of } from 'fluture'
import { future } from 'fp-ts-fluture/lib/Future'
import { array } from 'fp-ts/lib/Array'
array
.sequence(future)([of(1), reject('ops')])
.fork(() => console.error('error'), xs => console.log(xs)) // => "error"
array
.sequence(future)([of(1), of(2)])
.fork(() => console.error('error'), xs => console.log(xs)) // => [1, 2]