1.0.0 • Published 7 years ago

lb-f v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
7 years ago

lb-f

CircleCI

A collection of functional programming functions

Installation

npm i lb-f

Usage

// ES5
const {curry} = require('lb-f')

// ES2016+
import {curry} from 'lb-f'

// create a standard function
const add = (a + b) => a + b

// wrap it in a curry
const sum = curry(add)

// now you can call argument by argument
sum(1, 2) // 3
sum(1)(2) // 3