@typed-f/applicative
TypeScript icon, indicating that this package has built-in type declarations

0.3.8 • Public • Published

@typed-f/applicative

NPM Version repo-circleci-badge: https://img.shields.io/circleci/project/github/Ailrun/typed-f/master.svg?logo=circleci Known Vulnerabilities Supported TypeScript Version PRs Welcome

Watch on GitHub Star on GitHub

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

Package Sidebar

Install

npm i @typed-f/applicative

Weekly Downloads

171

Version

0.3.8

License

MIT

Unpacked Size

17 kB

Total Files

12

Last publish

Collaborators

  • ailrun