X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=heroik.js;h=bca710e0ef8be74598fdaca363e8d8304f71113c;hp=401268bdbdf12d9d7eef9cccdee73b5d62001302;hb=fe4a44bb71f83928ce7bf7244879d9b8f06c122f;hpb=f0ceb77ec0706a7efac4bee757be88899d0e925f diff --git a/heroik.js b/heroik.js index 401268b..bca710e 100644 --- a/heroik.js +++ b/heroik.js @@ -58,6 +58,10 @@ function choice (seq) { return seq[(Math.random() * seq.length) | 0]; } +function not (f) { + return function () { return !f.apply(this, arguments); }; +} + function contains (element) { return this.indexOf(element) >= 0; }