mostjs-community / most-static-land

Static Land Stream type for Most

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static Land Stream type for Most

Installation

npm install most-static-land
// modern JavaScript
import Stream from 'most-static-land'

// classic JavaScript
var Stream = require('most-static-land')

Usage

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)

About

Static Land Stream type for Most

License:MIT License


Languages

Language:JavaScript 100.0%