diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-22 21:10:54 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-22 21:10:54 -0500 |
| commit | f3a4949adf4b1e383ad6895ee810f10e658ece31 (patch) | |
| tree | 70d76c9a8d5b619fc13a01852950312cce2da8db /docs | |
| parent | c2de49c3c2a0f3d901fd27168daa506bdffd5b36 (diff) | |
Don't allow ≤ on operations in the VM
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bqn.js | 1 |
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) |
