From 1b5b2eff12c8a3f7f21d6f50a698bea7c4e81e8e Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 12 Dec 2020 16:11:17 -0500 Subject: Numbers should be type 1 and characters type 2 (unused by fmt.bqn) --- docs/bqn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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; -- cgit v1.2.3