diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-12 16:11:17 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-12 16:11:17 -0500 |
| commit | 1b5b2eff12c8a3f7f21d6f50a698bea7c4e81e8e (patch) | |
| tree | 493aa15176a877795e6b421d69f7886dd9524f55 | |
| parent | ddde54a778b9cbf5503fdf7ec0a9ed02d8a075e0 (diff) | |
Numbers should be type 1 and characters type 2 (unused by fmt.bqn)
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index 34297430..84740e02 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -215,7 +215,7 @@ let bqn = src => run.apply(null,compile(str(src),runtime)); let fmtnum = x => str(x==Infinity ? "∞" : x==-Infinity ? "¯∞" : (""+x).replace(/-/g,"¯")); let type = x => typeof x === "function" ? 3+(x.m||0) - : x.sh ? 0 : 1+(typeof x === "number"); + : x.sh ? 0 : 2-(typeof x === "number"); let decompose = x => list(typeof x !== "function" ? [-1,x] : x.glyph ? [0,x] : x.repr ? x.repr() : [1,x]); let glyph = x => x.glyph; |
