Skip to content
/ fp Public

A functionl program library for Javascript.

Notifications You must be signed in to change notification settings

BleemIs42/fp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FP

FP is a Functionl Program library for Javascript.

API

* curry
    curry(f(a, b))  =>  f(a)(b) / f(a, b)
    // need arity
    curry(f(...args, arity)) 
* uncurry
    uncurry(curry(f(a, b)))  =>  f(a, b)
    uncurry(curry(f(...args, arity))) == curry(f(...args, arity))
* compose 
    compose(f, g)(x)  => f(g(x))
* composeL
    composeL(f, g)(x)  =>  g(f(x))
* pipe
    pipe(x)(f, g)  =>  g(f(x))

About

A functionl program library for Javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published