@attack-monkey/fpipe
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

fpipe

fsharp style pipe for typescript

An fsharp style pipe for typescript (default to arity 10)

Install


npm i @attack-monkey/fpipe

Usage

I like Ramda... but their pipe / compose is off for my liking.

Ramda pipe is essentially an fsharp compose and Ramda compose is just an fsharp right to left compose (<<).

fpipe is an fsharp pipe.

const inc = (a: number) => a + 1

const thirteen = fpipe(10, inc, inc, inc)

^^ Which resembles

let thirteen = 10 |> inc |> inc |> inc

Package Sidebar

Install

npm i @attack-monkey/fpipe

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.64 kB

Total Files

6

Last publish

Collaborators

  • attack-monkey