1.5.0 • Published 1 year ago

sa-lambda v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Sa Lambda

NPM MIT Github codecov 996.icu

JS JS

Typescript library for functional programming.

Document

Modules

⚠️ sa-lambda is currently working in progress. ⚠️

  • Either
  • Maybe
  • Iterator
  • Pipe & Flow
  • Equal
  • Effect
  • Math
  • Async (Promise-Like)
  • Docs
  • Functors

Installation

npm

npm install sa-lambda

yarn

yarn add sa-lambda

pnpm

pnpm add sa-lambda

Use

import { pipe } from "sa-lambda";

pipe(
  1,
  (num: number) => num + 1,
  (num: number) => num + 2
);
import { flow } from "sa-lambda/pipe";

const f = flow(
  (num: number) => num + 1,
  (num: number) => num + 2
);

f(1);
f(2);

Functors

dependencies

Inspired by

  • fp-ts - Functional programming in TypeScript
  • fantasy-land - Specification for interoperability of common algebraic structures in JavaScript
  • sugar.js - Like syntactic sugar, but is library

License

The MIT License (MIT)

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-pre.3

2 years ago

1.0.0-pre.2

2 years ago

1.0.0-pre.1

2 years ago

1.0.0-pre.0

2 years ago