funny-curry

v1.0.2
Simple modules for functional programming, done for fun.
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 funny-curry

Metadata

  • MIT
  • Whatever
  • Luís Rodrigues
  • released 4/30/2017

Downloads

Maintainers