Sa Lambda
Typescript library for functional programming.
TODO
- Either
- Maybe
- Iterator
- Pipe & Flow
- Task (Promise-Like)
- some math utils
Installation
npm
npm install sa-lambda
yarn
yarn add sa-lambda
pnpm
pnpm add sa-lambda
Use
import { function_ } from "sa-lambda";
function_.pipe(
1,
(num: number) => num + 1,
(num: number) => num + 2
);
import { flow } from "sa-lambda/function";
const f = flow(
(num: number) => num + 1,
(num: number) => num + 2
);
f(1);