Skip to content

Instantly share code, notes, and snippets.

@augustl augustl/mori-test.js
Last active Dec 28, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.