aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-04 14:38:05 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-04 14:38:05 -0400
commitf9dda34e963bf88e68508eb47e23ec9f5ad0b6b6 (patch)
treee03860484e8d586b0656e631e38991fb9843c8d0
parent852bc0b8ba67a47dfe4f6c718fcddfd80415d423 (diff)
Use function formatter provided to fmt for blocks, etc.
-rw-r--r--docs/bqn.js11
-rw-r--r--md.bqn3
-rw-r--r--src/f.bqn4
3 files changed, 11 insertions, 7 deletions
diff --git a/docs/bqn.js b/docs/bqn.js
index cb02e1c7..eeafb354 100644
--- a/docs/bqn.js
+++ b/docs/bqn.js
@@ -424,12 +424,15 @@ let bqn = bqngen(compile, rt_sys);
// Formatter
let fmtnum = x => str(x==Infinity ? "∞" : x==-Infinity ? "¯∞"
: (""+x).replace(/-/g,"¯").replace(/\+/g,""));
+let placeholder = ["array","function","1-modifier","2-modifier","namespace"]
+ .map(s => str("*"+s+"*"));
+let repop = x => glyph[x] || placeholder[type(x)-2];
let [fmt1,repr] = run(
- [15,1,25,31,0,1,22,0,3,22,0,4,22,0,5,22,0,6,4,4,11,14,0,68,0,15,0,18,0,18,10,0,40,0,69,8,3,2,0,43,0,10,0,40,0,58,8,8,21,0,6,3,2,0,43,0,58,0,41,0,8,8,8,22,0,7,11,14,15,2,22,0,8,11,14,0,11,0,8,0,50,10,0,45,15,3,8,22,0,9,11,14,15,4,22,0,10,11,14,15,5,22,0,11,11,14,15,6,15,7,3,2,0,43,15,8,0,49,3,2,0,43,0,10,0,41,0,10,0,40,0,49,8,0,39,0,7,8,8,8,8,22,0,12,11,14,0,78,0,19,0,77,6,15,9,15,10,3,2,0,43,0,10,0,11,0,46,10,0,7,0,11,0,10,0,50,10,10,8,3,2,0,43,0,14,0,14,0,46,0,46,3,2,10,8,22,0,13,11,14,15,11,22,0,14,11,14,15,12,22,0,15,11,14,15,13,15,14,15,15,3,3,0,43,0,30,0,58,7,0,8,0,17,10,0,38,0,35,0,0,7,0,12,0,0,0,8,0,40,0,46,8,10,0,10,10,8,8,22,0,16,11,14,21,0,7,0,19,9,31,0,16,21,0,15,3,2,0,43,0,34,21,0,3,7,0,12,0,55,10,0,17,0,38,0,35,0,7,7,8,9,8,21,0,15,3,3,0,43,0,13,0,3,0,50,10,8,22,0,17,11,14,15,16,22,0,18,11,14,0,86,0,87,0,88,0,89,0,90,3,5,0,33,0,15,0,18,0,18,10,7,0,66,6,22,0,19,11,14,0,50,0,41,0,1,8,0,31,0,28,7,21,0,19,10,21,0,18,21,0,17,0,38,31,0,19,0,28,5,0,27,3,2,0,43,0,10,0,11,0,49,10,8,8,8,0,28,0,49,10,0,19,9,22,0,20,11,14,0,16,0,16,31,0,17,9,31,0,20,3,2,0,43,0,15,0,12,0,55,10,8,21,0,3,10,22,0,21,11,14,15,17,22,0,22,11,14,0,70,0,16,0,15,0,18,0,16,0,26,0,11,0,0,0,49,10,10,10,0,18,0,15,10,0,67,10,0,33,21,0,7,0,18,0,79,10,7,0,18,9,0,21,0,49,10,0,33,21,0,22,0,18,0,91,10,7,0,18,9,0,23,0,72,10,0,18,0,71,10,3,3,0,43,0,34,21,0,3,7,0,31,0,27,7,0,50,0,17,0,56,6,0,24,0,50,0,49,0,46,3,3,6,10,0,35,0,4,7,9,8,3,2,0,43,0,10,0,8,0,46,10,8,22,0,23,11,14,0,28,0,38,21,0,22,8,0,18,0,92,10,21,0,23,0,17,31,0,23,0,39,0,18,0,40,0,93,0,41,0,18,8,8,8,0,14,10,3,3,0,43,0,11,0,3,0,50,10,8,22,0,24,11,14,31,0,7,31,0,24,3,2,0,43,21,0,3,0,11,0,46,10,8,22,0,25,11,14,0,30,0,46,7,0,29,0,94,10,31,0,18,31,0,22,8,0,28,0,49,10,22,0,26,11,14,0,16,0,16,31,0,25,9,31,0,26,3,2,0,43,0,15,0,12,0,55,10,8,21,0,3,10,22,0,27,11,14,21,0,21,0,38,0,32,0,57,0,0,0,58,6,0,41,0,18,8,7,8,0,17,9,0,21,0,47,10,21,0,27,3,2,25,0,49,0,33,0,20,7,31,0,1,0,1,5,6,0,25,0,42,0,37,0,31,0,34,0,2,7,7,7,8,5,0,35,0,47,0,48,3,2,0,44,0,0,8,7,31,0,2,17,0,17,5,0,28,0,40,0,47,8,0,42,0,46,8,5,25,21,0,1,0,14,5,0,21,0,47,6,22,0,3,11,0,4,0,49,6,21,1,8,5,22,0,4,11,14,15,18,22,0,5,11,14,21,0,1,0,17,31,0,1,0,14,5,0,20,0,47,6,0,18,31,0,3,0,35,0,2,7,5,6,6,0,20,0,40,0,35,0,0,7,8,31,0,5,3,2,0,43,0,16,0,38,0,10,8,0,8,0,46,10,8,31,0,4,6,25,21,0,1,0,17,5,0,33,0,30,0,59,7,0,17,0,14,0,28,0,47,10,0,41,0,19,8,10,0,18,0,16,10,7,31,0,1,0,14,5,21,1,8,0,49,6,6,0,18,5,25,0,59,0,17,21,0,1,0,10,5,31,0,2,3,2,6,22,0,3,11,14,21,0,3,31,0,1,31,0,3,3,3,0,19,5,0,18,5,25,0,72,0,18,31,0,1,0,27,5,0,21,0,49,6,0,21,0,47,6,6,0,18,0,71,6,0,19,5,25,21,0,1,0,14,5,0,28,0,47,6,22,0,3,11,14,0,73,21,0,2,0,16,0,3,0,49,10,0,31,0,27,7,0,74,10,0,17,9,21,1,6,3,2,0,43,0,8,0,40,0,51,8,8,16,3,2,0,18,5,0,20,21,0,3,6,0,19,5,31,0,1,0,28,0,42,0,75,0,28,0,49,0,1,31,0,2,17,0,3,0,52,6,0,4,0,46,6,6,8,5,0,76,0,20,0,40,0,1,8,31,0,3,6,0,19,5,3,3,0,18,5,25,31,0,1,0,27,5,0,34,0,11,7,0,70,6,0,36,0,1,7,5,0,37,0,0,7,5,0,11,0,50,6,0,35,0,7,7,5,25,31,0,1,0,33,0,59,7,5,21,1,11,0,49,6,21,1,12,0,50,6,0,28,0,40,0,46,0,47,3,2,8,0,42,0,60,8,5,25,31,0,1,0,14,5,0,70,0,33,21,1,6,7,0,33,0,18,0,40,0,79,8,7,9,0,18,9,0,28,0,42,0,61,8,9,3,2,0,43,0,10,0,8,0,49,10,8,5,0,19,5,25,21,0,1,0,33,0,14,7,5,22,0,3,11,14,21,0,3,0,33,0,28,7,0,49,6,0,17,0,30,0,49,7,0,1,0,11,10,0,45,0,36,0,4,7,8,3,2,0,43,0,11,0,8,0,46,10,8,5,22,0,4,11,14,31,0,3,0,33,0,28,7,5,0,11,0,8,0,46,10,0,45,0,49,0,44,0,36,0,4,7,8,8,5,22,0,5,11,14,31,0,1,0,33,0,20,7,0,49,0,20,21,0,4,0,10,5,0,2,21,0,2,17,0,1,5,6,0,6,31,0,4,6,0,2,31,0,2,17,0,34,0,19,7,21,0,5,6,6,0,11,0,1,0,50,10,0,4,0,46,10,0,45,0,19,8,5,0,50,0,44,0,18,0,38,0,8,8,8,5,22,0,6,11,14,31,0,6,21,1,10,0,9,0,38,21,1,9,8,3,2,0,43,31,0,5,0,17,5,0,13,0,40,0,25,0,40,0,49,8,8,5,8,5,21,1,11,0,50,6,25,21,0,1,0,33,21,1,21,7,5,21,1,14,0,49,0,15,31,0,2,17,6,21,1,12,31,0,1,0,11,5,6,25,21,0,1,0,11,5,22,0,3,11,14,0,80,0,16,0,42,21,0,1,8,5,0,21,0,46,6,22,0,1,12,14,21,0,1,0,14,5,0,21,0,47,6,22,0,4,11,0,10,5,0,1,5,0,11,0,40,0,46,8,0,45,0,48,8,5,22,0,5,11,14,21,0,3,0,8,0,46,6,0,31,0,28,7,0,81,6,22,0,6,11,14,15,19,22,0,7,11,14,21,0,1,0,26,0,40,0,16,0,11,21,0,6,10,0,0,0,49,10,8,31,0,7,3,2,0,43,21,0,3,0,10,0,49,6,8,5,22,0,1,12,14,21,0,6,0,20,0,40,0,1,8,21,0,4,6,21,0,5,0,44,0,18,8,31,0,1,6,31,0,5,0,44,0,18,8,0,64,0,20,21,0,4,0,18,0,49,6,0,28,0,47,6,6,0,17,31,0,4,6,0,28,0,42,31,0,6,8,5,6,0,19,5,21,0,3,0,10,0,49,6,0,45,21,1,9,21,1,11,0,49,10,21,1,12,31,0,3,10,8,5,25,31,0,1,21,1,15,21,1,13,3,2,0,43,0,14,0,11,0,46,10,0,35,0,7,7,9,8,5,25,31,0,1,21,1,15,0,47,6,25,0,16,0,16,31,0,4,9,0,8,0,39,0,19,8,0,46,10,31,0,0,3,2,0,43,0,15,0,12,0,55,10,8,21,1,3,10,22,0,6,11,14,21,0,1,21,1,4,5,22,0,7,11,0,28,5,22,0,8,11,14,0,65,0,1,0,82,6,0,28,21,0,8,6,22,0,9,11,14,0,84,0,41,0,18,8,0,18,0,83,10,22,0,10,11,14,0,16,0,33,31,0,6,0,41,0,28,0,40,0,49,8,0,15,0,12,21,0,9,0,3,0,50,6,10,0,45,0,16,0,38,31,0,10,8,8,0,28,0,41,0,0,8,10,8,7,0,10,0,38,0,22,8,0,11,0,46,10,0,1,9,0,49,0,9,21,0,9,6,0,45,0,25,8,9,10,0,18,9,22,0,11,11,14,21,0,7,0,21,0,49,6,0,30,31,0,1,7,21,1,5,0,38,0,17,8,9,0,16,31,0,5,31,0,2,19,31,0,11,3,3,0,43,31,0,8,0,5,5,0,3,0,50,6,8,5,22,0,12,11,14,21,0,12,21,0,9,0,12,0,50,6,0,45,0,30,31,0,7,7,0,28,0,47,10,21,1,3,9,0,9,0,55,10,0,45,0,85,0,41,0,18,8,8,8,5,22,0,12,12,14,31,0,9,31,0,12,3,2,25,31,0,1,21,1,27,5,25,31,0,1,0,18,0,40,0,27,0,38,0,33,0,59,7,8,8,5,0,27,31,0,2,0,0,0,49,17,0,18,0,46,17,0,26,16,0,2,0,40,0,8,0,40,0,24,8,8,16,17,25,0,54,0,0,0,58,6,0,8,21,0,1,6,0,2,0,58,0,1,0,63,6,6,0,0,0,53,0,0,0,58,6,0,16,0,1,0,62,10,0,2,0,11,10,21,0,1,6,6,0,0,31,0,1,6,25]
- ,[runtime[0],runtime[1],runtime[2],runtime[6],runtime[7],runtime[8],runtime[9],runtime[11],runtime[12],runtime[13],runtime[14],runtime[15],runtime[16],runtime[18],runtime[19],runtime[20],runtime[21],runtime[22],runtime[23],runtime[24],runtime[25],runtime[26],runtime[27],runtime[28],runtime[29],runtime[30],runtime[32],runtime[35],runtime[36],runtime[42],runtime[43],runtime[44],runtime[45],runtime[46],runtime[47],runtime[49],runtime[50],runtime[51],runtime[52],runtime[53],runtime[54],runtime[55],runtime[56],runtime[58],runtime[59],runtime[61],0,-1,Infinity,1,2,5,4,127,32,3,7,10,'\0',' ','┐','↕','␡','␀','·','0','*','\"',str("@"),str("\'"),str("⟨⟩"),str("⟨"),str("⟩"),str("┌"),str("·─"),str("·╵╎┆┊"),str("┘"),str("┌┐"),str("└┘"),str("‿"),str(""),str("\'\""),str("00321111"),str("("),str(")"),str("{𝔽}"),str("array"),str("function"),str("1-modifier"),str("2-modifier"),str("namespace"),str(","),str("<"),str("⥊"),str("Can\'t represent block")]
+ [15,1,25,31,0,1,22,0,3,22,0,4,22,0,5,22,0,6,4,4,11,14,0,67,0,15,0,18,0,18,10,0,40,0,68,8,3,2,0,43,0,10,0,40,0,58,8,8,21,0,6,3,2,0,43,0,58,0,41,0,8,8,8,22,0,7,11,14,15,2,22,0,8,11,14,0,11,0,8,0,50,10,0,45,15,3,8,22,0,9,11,14,15,4,22,0,10,11,14,15,5,22,0,11,11,14,15,6,15,7,3,2,0,43,15,8,0,49,3,2,0,43,0,10,0,41,0,10,0,40,0,49,8,0,39,0,7,8,8,8,8,22,0,12,11,14,0,77,0,19,0,76,6,15,9,15,10,3,2,0,43,0,10,0,11,0,46,10,0,7,0,11,0,10,0,50,10,10,8,3,2,0,43,0,14,0,14,0,46,0,46,3,2,10,8,22,0,13,11,14,15,11,22,0,14,11,14,15,12,22,0,15,11,14,15,13,15,14,15,15,3,3,0,43,0,30,0,58,7,0,8,0,17,10,0,38,0,35,0,0,7,0,12,0,0,0,8,0,40,0,46,8,10,0,10,10,8,8,22,0,16,11,14,21,0,7,0,19,9,31,0,16,21,0,15,3,2,0,43,0,34,21,0,3,7,0,12,0,55,10,0,17,0,38,0,35,0,7,7,8,9,8,21,0,15,3,3,0,43,0,13,0,3,0,50,10,8,22,0,17,11,14,15,16,22,0,18,11,14,0,85,22,0,19,11,14,0,16,0,38,0,28,8,21,0,5,9,21,0,19,3,2,0,43,0,50,0,41,0,11,8,8,21,0,18,21,0,17,0,38,31,0,19,0,27,3,2,0,43,0,10,0,11,0,49,10,8,8,8,0,28,0,49,10,0,19,9,22,0,20,11,14,0,16,0,16,31,0,17,9,31,0,20,3,2,0,43,0,15,0,12,0,55,10,8,21,0,3,10,22,0,21,11,14,15,17,22,0,22,11,14,0,69,0,16,0,15,0,18,0,16,0,26,0,11,0,0,0,49,10,10,10,0,18,0,15,10,0,66,10,0,33,21,0,7,0,18,0,78,10,7,0,18,9,0,21,0,49,10,0,33,21,0,22,0,18,0,86,10,7,0,18,9,0,23,0,71,10,0,18,0,70,10,3,3,0,43,0,34,21,0,3,7,0,31,0,27,7,0,50,0,17,0,56,6,0,24,0,50,0,49,0,46,3,3,6,10,0,35,0,4,7,9,8,3,2,0,43,0,10,0,8,0,46,10,8,22,0,23,11,14,0,28,0,38,21,0,22,8,0,18,0,87,10,21,0,23,0,17,31,0,23,0,39,0,18,0,40,0,88,0,41,0,18,8,8,8,0,14,10,3,3,0,43,0,11,0,3,0,50,10,8,22,0,24,11,14,31,0,7,31,0,24,3,2,0,43,21,0,3,0,11,0,46,10,8,22,0,25,11,14,0,30,0,46,7,0,29,0,89,10,31,0,18,31,0,22,8,0,28,0,49,10,22,0,26,11,14,0,16,0,16,31,0,25,9,31,0,26,3,2,0,43,0,15,0,12,0,55,10,8,21,0,3,10,22,0,27,11,14,21,0,21,0,38,0,32,0,57,0,0,0,58,6,0,41,0,18,8,7,8,0,17,9,0,21,0,47,10,21,0,27,3,2,25,0,49,0,33,0,20,7,31,0,1,0,1,5,6,0,25,0,42,0,37,0,31,0,34,0,2,7,7,7,8,5,0,35,0,47,0,48,3,2,0,44,0,0,8,7,31,0,2,17,0,17,5,0,28,0,40,0,47,8,0,42,0,46,8,5,25,21,0,1,0,14,5,0,21,0,47,6,22,0,3,11,0,4,0,49,6,21,1,8,5,22,0,4,11,14,15,18,22,0,5,11,14,21,0,1,0,17,31,0,1,0,14,5,0,20,0,47,6,0,18,31,0,3,0,35,0,2,7,5,6,6,0,20,0,40,0,35,0,0,7,8,31,0,5,3,2,0,43,0,16,0,38,0,10,8,0,8,0,46,10,8,31,0,4,6,25,21,0,1,0,17,5,0,33,0,30,0,59,7,0,17,0,14,0,28,0,47,10,0,41,0,19,8,10,0,18,0,16,10,7,31,0,1,0,14,5,21,1,8,0,49,6,6,0,18,5,25,0,59,0,17,21,0,1,0,10,5,31,0,2,3,2,6,22,0,3,11,14,21,0,3,31,0,1,31,0,3,3,3,0,19,5,0,18,5,25,0,71,0,18,31,0,1,0,27,5,0,21,0,49,6,0,21,0,47,6,6,0,18,0,70,6,0,19,5,25,21,0,1,0,14,5,0,28,0,47,6,22,0,3,11,14,0,72,21,0,2,0,16,0,3,0,49,10,0,31,0,27,7,0,73,10,0,17,9,21,1,6,3,2,0,43,0,8,0,40,0,51,8,8,16,3,2,0,18,5,0,20,21,0,3,6,0,19,5,31,0,1,0,28,0,42,0,74,0,28,0,49,0,1,31,0,2,17,0,3,0,52,6,0,4,0,46,6,6,8,5,0,75,0,20,0,40,0,1,8,31,0,3,6,0,19,5,3,3,0,18,5,25,31,0,1,0,27,5,0,34,0,11,7,0,69,6,0,36,0,1,7,5,0,37,0,0,7,5,0,11,0,50,6,0,35,0,7,7,5,25,31,0,1,0,33,0,59,7,5,21,1,11,0,49,6,21,1,12,0,50,6,0,28,0,40,0,46,0,47,3,2,8,0,42,0,60,8,5,25,31,0,1,0,14,5,0,69,0,33,21,1,6,7,0,33,0,18,0,40,0,78,8,7,9,0,18,9,0,28,0,42,0,61,8,9,3,2,0,43,0,10,0,8,0,49,10,8,5,0,19,5,25,21,0,1,0,33,0,14,7,5,22,0,3,11,14,21,0,3,0,33,0,28,7,0,49,6,0,17,0,30,0,49,7,0,1,0,11,10,0,45,0,36,0,4,7,8,3,2,0,43,0,11,0,8,0,46,10,8,5,22,0,4,11,14,31,0,3,0,33,0,28,7,5,0,11,0,8,0,46,10,0,45,0,49,0,44,0,36,0,4,7,8,8,5,22,0,5,11,14,31,0,1,0,33,0,20,7,0,49,0,20,21,0,4,0,10,5,0,2,21,0,2,17,0,1,5,6,0,6,31,0,4,6,0,2,31,0,2,17,0,34,0,19,7,21,0,5,6,6,0,11,0,1,0,50,10,0,4,0,46,10,0,45,0,19,8,5,0,50,0,44,0,18,0,38,0,8,8,8,5,22,0,6,11,14,31,0,6,21,1,10,0,9,0,38,21,1,9,8,3,2,0,43,31,0,5,0,17,5,0,13,0,40,0,25,0,40,0,49,8,8,5,8,5,21,1,11,0,50,6,25,21,0,1,0,33,21,1,21,7,5,21,1,14,0,49,0,15,31,0,2,17,6,21,1,12,31,0,1,0,11,5,6,25,21,0,1,0,11,5,22,0,3,11,14,0,79,0,16,0,42,21,0,1,8,5,0,21,0,46,6,22,0,1,12,14,21,0,1,0,14,5,0,21,0,47,6,22,0,4,11,0,10,5,0,1,5,0,11,0,40,0,46,8,0,45,0,48,8,5,22,0,5,11,14,21,0,3,0,8,0,46,6,0,31,0,28,7,0,80,6,22,0,6,11,14,15,19,22,0,7,11,14,21,0,1,0,26,0,40,0,16,0,11,21,0,6,10,0,0,0,49,10,8,31,0,7,3,2,0,43,21,0,3,0,10,0,49,6,8,5,22,0,1,12,14,21,0,6,0,20,0,40,0,1,8,21,0,4,6,21,0,5,0,44,0,18,8,31,0,1,6,31,0,5,0,44,0,18,8,0,64,0,20,21,0,4,0,18,0,49,6,0,28,0,47,6,6,0,17,31,0,4,6,0,28,0,42,31,0,6,8,5,6,0,19,5,21,0,3,0,10,0,49,6,0,45,21,1,9,21,1,11,0,49,10,21,1,12,31,0,3,10,8,5,25,31,0,1,21,1,15,21,1,13,3,2,0,43,0,14,0,11,0,46,10,0,35,0,7,7,9,8,5,25,31,0,1,21,1,15,0,47,6,25,0,16,0,16,31,0,4,9,0,8,0,39,0,19,8,0,46,10,31,0,0,3,2,0,43,0,15,0,12,0,55,10,8,21,1,3,10,22,0,6,11,14,21,0,1,21,1,4,5,22,0,7,11,0,28,5,22,0,8,11,14,0,65,0,1,0,81,6,0,28,21,0,8,6,22,0,9,11,14,0,83,0,41,0,18,8,0,18,0,82,10,22,0,10,11,14,0,16,0,33,31,0,6,0,41,0,28,0,40,0,49,8,0,15,0,12,21,0,9,0,3,0,50,6,10,0,45,0,16,0,38,31,0,10,8,8,0,28,0,41,0,0,8,10,8,7,0,10,0,38,0,22,8,0,11,0,46,10,0,1,9,0,49,0,9,21,0,9,6,0,45,0,25,8,9,10,0,18,9,22,0,11,11,14,21,0,7,0,21,0,49,6,0,30,31,0,1,7,21,1,5,0,38,0,17,8,9,0,16,31,0,5,31,0,2,19,31,0,11,3,3,0,43,31,0,8,0,5,5,0,3,0,50,6,8,5,22,0,12,11,14,21,0,12,21,0,9,0,12,0,50,6,0,45,0,30,31,0,7,7,0,28,0,47,10,21,1,3,9,0,9,0,55,10,0,45,0,84,0,41,0,18,8,8,8,5,22,0,12,12,14,31,0,9,31,0,12,3,2,25,31,0,1,21,1,27,5,25,31,0,1,0,18,0,40,0,27,0,38,0,33,0,59,7,8,8,5,0,27,31,0,2,0,0,0,49,17,0,18,0,46,17,0,26,16,0,2,0,40,0,8,0,40,0,24,8,8,16,17,25,0,54,0,0,0,58,6,0,8,21,0,1,6,0,2,0,58,0,1,0,63,6,6,0,0,0,53,0,0,0,58,6,0,16,0,1,0,62,10,0,2,0,11,10,21,0,1,6,6,0,0,31,0,1,6,25]
+ ,[runtime[0],runtime[1],runtime[2],runtime[6],runtime[7],runtime[8],runtime[9],runtime[11],runtime[12],runtime[13],runtime[14],runtime[15],runtime[16],runtime[18],runtime[19],runtime[20],runtime[21],runtime[22],runtime[23],runtime[24],runtime[25],runtime[26],runtime[27],runtime[28],runtime[29],runtime[30],runtime[32],runtime[35],runtime[36],runtime[42],runtime[43],runtime[44],runtime[45],runtime[46],runtime[47],runtime[49],runtime[50],runtime[51],runtime[52],runtime[53],runtime[54],runtime[55],runtime[56],runtime[58],runtime[59],runtime[61],0,-1,Infinity,1,2,5,4,127,32,3,7,10,'\0',' ','┐','↕','␡','␀','·','0','\"',str("@"),str("\'"),str("⟨⟩"),str("⟨"),str("⟩"),str("┌"),str("·─"),str("·╵╎┆┊"),str("┘"),str("┌┐"),str("└┘"),str("‿"),str(""),str("\'\""),str("00321111"),str("("),str(")"),str("{𝔽}"),str("*array*"),str(","),str("<"),str("⥊"),str("Can\'t represent block")]
,[[0,1,0],[0,0,1],[0,0,2],[0,0,3],[0,0,4],[0,0,[[],[5]]],[0,0,6],[0,0,[[],[7]]],[0,0,8],[0,0,9],[0,0,10],[0,0,11],[0,0,12],[0,0,13],[0,0,14],[0,0,15],[2,0,16],[0,0,17],[0,0,18],[0,0,19]]
- ,[[0,0],[3,28],[761,3],[827,6],[927,3],[978,4],[1017,3],[1047,4],[1170,3],[1208,3],[1247,3],[1300,7],[1530,3],[1563,8],[1805,3],[1834,3],[1844,13],[2144,3],[2152,3],[2204,3]]
-)(list([type, decompose, glyph, fmtnum]));
+ ,[[0,0],[3,28],[745,3],[811,6],[911,3],[962,4],[1001,3],[1031,4],[1154,3],[1192,3],[1231,3],[1284,7],[1514,3],[1547,8],[1789,3],[1818,3],[1828,13],[2128,3],[2136,3],[2188,3]]
+)(list([type, decompose, repop, fmtnum]));
let fmt = x => unstr(fmt1(x));
let fmtErr = e => {
diff --git a/md.bqn b/md.bqn
index 5098eef2..8cca62c0 100644
--- a/md.bqn
+++ b/md.bqn
@@ -622,7 +622,8 @@ GetMultiHighlights ← {
################################
# Format an array to a string
-fmt ← ⊑ (•Import "src/f.bqn"){𝔽} ⟨•Type,•Decompose,•Glyph,•Repr⟩
+tn ← "*"⊸(∾∾⊣)¨"array"‿"function"‿"1-modifier"‿"2-modifier"‿"namespace"
+fmt ← ⊑ (•Import "src/f.bqn"){𝔽} ⟨•Type,•Decompose,•Glyph⎊(tn⊑˜2-˜•Type),•Repr⟩
################################
diff --git a/src/f.bqn b/src/f.bqn
index 15e4cdc9..69a6c619 100644
--- a/src/f.bqn
+++ b/src/f.bqn
@@ -90,8 +90,8 @@
s ↩ ∾⟜"{𝔽}"⍟(3>·Type ¯1⊑d˙)⍟(2≤p) s
p‿s
}
- tn ← '*'(∾∾⊣)¨"array"‿"function"‿"1-modifier"‿"2-modifier"‿"namespace"
- FmtOp ← ≍1⊑ (1=≠)◶⟨⊑tn,⊏⟩∘FmtDat _dispOp_ (tn⊑˜-⟜2)
+ arr ← "*array*"
+ FmtOp ← ≍1⊑ (1=≠)◶⟨arr,⊏⟩∘FmtDat _dispOp_ (=⟜2◶⟨FF⊑∘⊢,arr⟩)
# Format any value to character matrix
Fmt ← Type (3≤⊣)◶⟨FmtDat⊢,FmtOp⟩ ⊢