Skip to content

Instantly share code, notes, and snippets.

@flazz
Last active December 27, 2015 02:58
Show Gist options
  • Save flazz/7255696 to your computer and use it in GitHub Desktop.
Save flazz/7255696 to your computer and use it in GitHub Desktop.
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