aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-22 21:10:54 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-22 21:10:54 -0500
commitf3a4949adf4b1e383ad6895ee810f10e658ece31 (patch)
tree70d76c9a8d5b619fc13a01852950312cce2da8db /docs
parentc2de49c3c2a0f3d901fd27168daa506bdffd5b36 (diff)
Don't allow ≤ on operations in the VM
Diffstat (limited to 'docs')
-rw-r--r--docs/bqn.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/bqn.js b/docs/bqn.js
index 29201421..de50537d 100644
--- a/docs/bqn.js
+++ b/docs/bqn.js
@@ -138,6 +138,7 @@ let floor = (x,w) => {
}
let lesseq = (x,w) => {
let s=typeof w, t=typeof x;
+ if (s==="function"||t==="function") throw Error("𝕨≤𝕩: Cannot compare operations");
return +(s!==t ? s<=t : w<=x);
}
let table = f => setrepr(()=>[4,f,table], (x,w) => !has(w)