funny-curry
v1.0.1 curry fp funny functional
curry
Simple modules for functional programming, done for fun.
Usage
import curry from 'funny-curry'
const exponentBase2 = curry(Math.pow, 2)
exponentBase2(3) // 8
const exponent = curry(Math.pow)
exponent(2, 3) // 8
exponent(2)(3) // 8
License
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.
npm i [email protected]
Metadata
- MIT
- Whatever
- Luís Rodrigues
- released 8/28/2016