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 generate = function (f) { | |
var double = function(x) { | |
return x * 2; | |
}; | |
return [f, double]; | |
}; | |
var t = function() {return true;}; |
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 addOn = function(x){ | |
return x+1; | |
}; | |
var applyTest = function (f, x) { | |
return [x, (f(x)), (f(0))]; | |
}; | |
var y = applyTest(addOn, 1); |
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 splitWordNumero(bar){ | |
var foo = bar; | |
//var foo = "The quick brown fox jumps over the lazy dog"; | |
var temp = []; | |
var res = []; | |
temp = foo.split(' '); | |
var j = temp.length; | |
console.log(j); |
NewerOlder