Last active
December 27, 2015 02:58
-
-
Save flazz/7255696 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 p = point(2,2); | |
p.x(); // => 2 | |
p.y(); // => 2 | |
var p2 = p.scale(1, 2); | |
p2.x(); // => 2 | |
p2.y(); // => 4 | |
// can it satisfy? | |
var proof = function(f) { | |
return f(); | |
} | |
proof(p.y); // 2 | |
proof(p2.y); // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment