aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-06 16:27:45 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-06 16:27:45 -0400
commit8058cc31eb23393f7c78617d0136e9d21e28d869 (patch)
treedb7758197ab2a33ee13e8df72ebbff87f4313077
parent06b5904e470b5295a6f09b6f85f21cb8172e13be (diff)
Don't rely on ⊑ of empty in md.bqn
-rw-r--r--md.bqn8
1 files changed, 4 insertions, 4 deletions
diff --git a/md.bqn b/md.bqn
index 8cca62c0..055a9e88 100644
--- a/md.bqn
+++ b/md.bqn
@@ -395,10 +395,10 @@ Markdown ← {filename𝕊𝕩:
# the natural depth, which is equal to the adjusted depth plus one
# at each open bracket, can only decrease between two values if
# they have the same depth and the first is open but the second
- # is closed: that is, if they form a balanced pair. ⊑⊸»⊸> gives a
- # mask for the second part of each such pair and «⊸∨ extends it to
- # the first as well.
- hasPair ← «⊸∨ ⊑⊸»⊸> order⊏depth
+ # is closed: that is, if they form a balanced pair. 1⊸↑⊸»⊸> gives
+ # a mask for the second part of each such pair and «⊸∨ extends it
+ # to the first as well.
+ hasPair ← «⊸∨ 1⊸↑⊸»⊸> order⊏depth
∘‿2 ⥊ hasPair / order⊏ind
}
JoinPairs ← {