Skip to content

mostjs-community/most-static-land

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)