Sub-package of Funfix defining type classes inspired by Haskell's standard library and by Typelevel Cats


Sub-project of Funfix containing low level,
side-effectful utilities and data types for building higher level
concurrency tools.
Links:
- Homepage
- JSDoc documentation
You can depend on the whole funfix library, by adding it topackage.json:
``bash`
npm install --save funfix
In this case imports are like:
`typescript`
import { Future } from "funfix"
Or for finer grained dependency management, the project can depend
only on funfix-exec:
`bash`
npm install --save funfix-exec
In this case imports are like:
`typescript`
import { Future } from "funfix-exec"
Usage sample:
`typescript
import { Future } from "funfix"
const f1 = Future.of(() => "hello")
const f2 = Future.of(() => "world")
const greeting = Future.map2(f1, f2, (a, b) => a + " " + b)
greeting.onComplete(r => {
r.fold(console.error, console.info)
})
`
The library has been compiled using
UMD (Universal Module Definition),
so it should work with CommonJS
and AMD.
But it also provides a module definition in package.json`, thus
providing compatibility with
ECMAScript 2015 modules, for usage when used with a modern JS engine,
or when bundling with a tool chain that understands ES2015 modules,
like Rollup or Webpack.
Licensed under the Apache License, Version 2.0.