deno.land / x / rambda@v9.1.1 / source / benchmarks / curry.js
1234567891011121314151617181920212223242526272829303132const R = require('../../dist/rambda.js')const Ramda = require('ramda')
const addFourNumbers = ( a, b, c, d) => a + b + c + d
const curry = [ { label : 'Rambda', fn : () => { const curriedAddFourNumbers = R.curry(addFourNumbers) const f = curriedAddFourNumbers(1, 2) const g = f(3)
g(4) }, }, { label : 'Ramda', fn : () => { const curriedAddFourNumbers = Ramda.curry(addFourNumbers) const f = curriedAddFourNumbers(1, 2) const g = f(3)
g(4) }, },]
module.exports = curry
Version Info