Permalink
Browse files

quirky variables/mutations

  • Loading branch information...
1 parent 6616722 commit 982ef59f2e57154e4cc5977950bdc2a36ad53b6c @emjayess committed Sep 26, 2012
Showing with 30 additions and 0 deletions.
  1. +30 −0 equalle.js
View
@@ -1,9 +1,39 @@
+/*
+
+ @see: http://mathiasbynens.be/notes/javascript-identifiers
+
+ */
+
var λ͇ = function() {
return {
equalle : function(s) {
document.write(s);
+ },
+ equalle⃗ : function(x, x⃗) {
+ return x == x⃗;
}
};
}
λ͇().equalle('<kbd>combining equalle sign belowwe (<a href="http://codepoints.net/U+0347">U+0347</a>)</kbd>');
+
+document.write('<ol>');
+var π = Math.PI;
+
+//1
+var result = λ͇().equalle⃗(π, Math.PI);
+document.write('<li>'+result+'</li>');
+
+//2
+var result = λ͇().equalle⃗(π, 3.14);
+document.write('<li>'+result+'</li>');
+
+//3
+var result = λ͇().equalle⃗(2, ' '.length);
+document.write('<li>'+result+'</li>');
+
+//4
+var result = λ͇().equalle⃗(3, ' '.length);
+document.write('<li>'+result+'</li>');
+
+document.write('</ol>');

0 comments on commit 982ef59

Please sign in to comment.