Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ Why is this called `getWith`? Consider this function that is common in languages
return object[attr];
};

You might ask, "Why use a function instead of just using `[]`?" The answer is, we can manipulate functions in ways that we can't manipulate syntax. For example, do you remember from [filp](#flip) that we can define `mapWith` from `map`?
You might ask, "Why use a function instead of just using `[]`?" The answer is, we can manipulate functions in ways that we can't manipulate syntax. For example, do you remember from [flip](#flip) that we can define `mapWith` from `map`?

var mapWith = flip(map);

We can do the same thing with `getWith`, and that's why it's named in this fashion:

var getWith = flip(get)
var getWith = flip(get)