This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _some = Array.prototype.some; | |
var _every = Array.prototype.every; | |
function lessThan(x){ | |
return function(y){ | |
return y < x; | |
}; | |
} | |
function greaterThan(x){ | |
return function(y){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Function that takes in a keyword and list of the form | |
% [{ruby,"an OO language"}, {erlang,"a functional language"}] | |
% and returns the associated value for the keyword. | |
Value = fun(X,L) -> [Y || {Z,Y} <- L, X=:=Z] end. |