Skip to content

Commit

Permalink
Merge pull request MostlyAdequate#311 from matt-paul/patch-2
Browse files Browse the repository at this point in the history
Correction to curry exercise 1a answer
  • Loading branch information
Brian Lonsdorf authored Oct 16, 2016
2 parents 26921ed + 6a78b65 commit c97f4d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/part1_exercises/answers/curry/curry_exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ console.log('add', map(add(2)));
// Exercise 1
//==============

var words = split(' ');
var words = _.split(' ');

// Exercise 1a
//==============

var sentences = map(words);
var sentences = _.map(words);


// Exercise 2
//==============

var filterQs = filter(match(/q/i));
var filterQs = _.filter(match(/q/i));


// Exercise 3
Expand All @@ -27,7 +27,7 @@ var filterQs = filter(match(/q/i));

var _keepHighest = function(x,y){ return x >= y ? x : y; }; // <- leave be

var max = reduce(_keepHighest, -Infinity);
var max = _.reduce(_keepHighest, -Infinity);


// Bonus 1:
Expand Down

0 comments on commit c97f4d2

Please sign in to comment.