npm.io
1.0.2 • Published 9 years ago

funny-curry-n

Licence
MIT
Version
1.0.2
Deps
0
Vulns
0
Weekly
0
Stars
5

curryN

Simple modules for functional programming, done for fun.

Usage

import curryN from 'funny-curry-n'

const max3 = curryN(3, Math.max)
max3(1, 2, 3)
max3(1, 2)(3)
max3(1)(2, 3)
max3(1)(2)(3)

License

The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.

Keywords