@typed-f/applicative
repo-circleci-badge: https://img.shields.io/circleci/project/github/Ailrun/typed-f/master.svg?logo=circleci
Applicative implementation for Typed-F
Installation
End user could install this as a dev dependency like
npm install --save-dev @typed-f/applicative
# or
npm i -D @typed-f/applicative
TS library authors should install this as a dependency (not a dev dependency)
# for NPM>=5
npm install @typed-f/applicative
# or
npm i @typed-f/applicative
# for NPM<5
npm install --save @typed-f/applicative
# or
npm i -S @typed-f/applicative
Description
This package includes type definition for applicative
type class, which includes
unit<T>(value: T): Applicative<T>
of: typeof unit
ap<T, U>(this: Applicative<T>, wf: Applicative<Fun<[T], U>>): Applicative<U>
(Above type definitions are not accurate one. In here, accurate types are modified for easier understanding.)
For example applicative, see @typed-f/maybe