Last active
December 28, 2015 14:16
-
-
Save augustl/828ec7ce730610054f3b to your computer and use it in GitHub Desktop.
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 log() { | |
console.log(mori.hash(xs), mori.count(xs)); | |
} | |
var xs = mori.vector(1, 2); | |
log(); // 1185709346 2 | |
xs = mori.remove(function (x) { return x === 2 }, xs); | |
log(); // -1939225835 1 | |
xs = mori.conj(xs, 3); | |
log(); // -1144666071 2 | |
xs = mori.conj(xs, 4); | |
log(); // -1144666071 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment