Static Land Stream type for Most
npm install most-static-land
// modern JavaScript
import Stream from 'most-static-land'
// classic JavaScript
var Stream = require('most-static-land')
Stream
is a Static Land type
that supports Semigroup
, Monoid
, Functor
, Apply
, Applicative
, Chain
, and Monad
.
import {observe} from 'most'
import Stream from 'most-static-land'
const stream = Stream.map(x => x * 3, Stream.of(2))
observe(x => {
// ...
}, stream)