Skip to content

Instantly share code, notes, and snippets.

Philip Young philipyoungg

Block or report user

Report or block philipyoungg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
philipyoungg / ramdaLift.js
Last active Jan 12, 2017
Understand how lift works on function level
View ramdaLift.js
As I have hard time understanding the same issue, I decided to take a peek from Ramda's source code. Will write a blogpost about `this`. Meanwhile—I made a commented gist how Ramda's `lift` work step by step.
// Let's make an example function that takes an object and return itself.
// 1. Ramda's lift level
lift(zipObj)(keys, values)({a: 1}) // returns {a: 1}
// this is how lift works in the background
module.exports = _curry2(function liftN(arity, fn) {
You can’t perform that action at this time.