From 1318616cb0054538bc9fa1c36deddd018fd8502e Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 21 Jul 2020 20:54:20 -0400 Subject: Work around dropped trailing " in array formatting --- docs/doc/fromDyalog.html | 2 +- docs/doc/prefixes.html | 22 +++++++++++----------- docs/doc/windows.html | 12 ++++++------ md.bqn | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/doc/fromDyalog.html b/docs/doc/fromDyalog.html index ec02f2e7..f2d3f85b 100644 --- a/docs/doc/fromDyalog.html +++ b/docs/doc/fromDyalog.html @@ -182,7 +182,7 @@ - + diff --git a/docs/doc/prefixes.html b/docs/doc/prefixes.html index c085624e..0173437e 100644 --- a/docs/doc/prefixes.html +++ b/docs/doc/prefixes.html @@ -82,8 +82,8 @@ ┌─ · ┌┐ ┌─ ┌─ ┌─ ╵ ╵"a ╵"ab ╵"abc" - b bc ┘ - c ┘ + b bc" ┘ + c" ┘ ┘ ┘ ┘ @@ -120,18 +120,18 @@ ┌─ ┌─ ┌─ ╵ ┌┐ ┌┐ ┌┐ ╵ ┌─ ┌─ ╵ ┌─ ╵ ╵ ╵ ╵"a ╵"b ╵"ab - c d cd + c" d" cd" ┘ ┘ ┘ ┘ ┘ ┘ ┌┐ ┌┐ ┌┐ ┌─ ┌─ ┌─ ╵ ╵ ╵ ╵"c ╵"d ╵"cd - e f ef + e" f" ef" ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┌─ ┌─ ┌─ ╵ ┌┐ ┌┐ ┌┐ ╵ ┌─ ┌─ ╵ ┌─ ╵ ╵ ╵ ╵"a ╵"b ╵"ab c d cd - e f ef + e" f" ef" ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ @@ -150,16 +150,16 @@ ┘ ┘ ┘ ┌─ ┌─ ┌─ ╵"a ╵"b ╵"ab - c d cd + c" d" cd" ┘ ┘ ┘ ┌─ ┌─ ┌─ ╵"c ╵"d ╵"cd - e f ef + e" f" ef" ┘ ┘ ┘ ┌─ ┌─ ┌─ ╵"a ╵"b ╵"ab c d cd - e f ef + e" f" ef" ┘ ┘ ┘ ┘ @@ -176,12 +176,12 @@ ┘ ┘ ┘ ┘ ┘ ┘ ┌┐ ┌─ ┌─ ┌┐ ┌─ ┌┐ ╵ ╵"a ╵"ab ╵ ╵"b ╵ - c cd d + c" cd" d" ┘ ┘ ┘ ┘ ┘ ┘ ┌┐ ┌─ ┌─ ┌┐ ┌─ ┌┐ ╵ ╵"a ╵"ab ╵ ╵"b ╵ c cd d - e ef f + e" ef" f" ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┌─ ┌─ ┌─ @@ -192,7 +192,7 @@ ┘ ┘ ┘ ┘ ┘ ┘ ┌┐ ┌─ ┌─ ┌┐ ┌─ ┌┐ ╵ ╵"c ╵"cd ╵ ╵"d ╵ - e ef f + e" ef" f" ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┘ ┌─ ┌─ ┌─ diff --git a/docs/doc/windows.html b/docs/doc/windows.html index 113d5ffd..7a8bb76d 100644 --- a/docs/doc/windows.html +++ b/docs/doc/windows.html @@ -9,7 +9,7 @@ ┌─ ╵"abcde bcdef - cdefg + cdefg" ┘

There are 1+(𝕩)-𝕨, or (𝕩)¬𝕨, of these sections, because the starting index must be at least 0 and at most (𝕩)-𝕨. Another way to find this result is to look at the number of cells in or before a given slice: there are always 𝕨 in the slice and there are only 𝕩 in total, so the number of slices is the range spanned by these two endpoints.

@@ -26,7 +26,7 @@ ┌─ · ┌─ ┌─ ╵"0123 ╵"abcd - abcd ABCD + abcd" ABCD" ┘ ┘ ┘ @@ -35,11 +35,11 @@ ┌─ ╵ ┌─ ┌─ ┌─ ╵"01 ╵"12 ╵"23 - ab bc cd + ab" bc" cd" ┘ ┘ ┘ ┌─ ┌─ ┌─ ╵"ab ╵"bc ╵"cd - AB BC CD + AB" BC" CD" ┘ ┘ ┘ ┘ @@ -55,9 +55,9 @@ · ┌─ ┌─ ╵"abcde ╵"abc bcdef bcd - cdefg cde + cdefg" cde ┘ def - efg + efg" ┘ ┘ diff --git a/md.bqn b/md.bqn index 1fd0861a..1757894c 100644 --- a/md.bqn +++ b/md.bqn @@ -492,7 +492,7 @@ Fmt ← { ((≠(0⊸<+≤)+´)⥊num)◶{ # All characters k ← -≠ c ← ¯1↓≢𝕩 - (r Enframe 1 PadH PadV)⍟(1≠r) ≍ (c↑'"') ∾⎉k 𝕩 ∾⎉k c-⊸↑'"' + (r Enframe 1 PadH PadV)⍟(1≠r) ≍ (c↑'"') ∾⎉k 𝕩 ∾⎉k ⌽c↑'"' }‿{ # Not homogeneous, or empty (∨´0=≢)◶FmtMixed‿FmtEmpty 𝕩 -- cgit v1.2.3
Operators
Syntax Monadic Dyadic
˝
¨˝
or `
¨ ¨
˜