chiark
/
gitweb
/
~bjharris
/
aoc-2022.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d6f67
)
Slight simplification of 03b
author
Ben Harris
<bjh21@bjh21.me.uk>
Fri, 3 May 2024 13:10:41 +0000
(14:10 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Fri, 3 May 2024 13:11:05 +0000
(14:11 +0100)
I think I've understood ˘ now. It's like ¨ but for rows rather than
elements.
03/03b.bqn
patch
|
blob
|
history
diff --git
a/03/03b.bqn
b/03/03b.bqn
index 9a52f2a10224e561b47f83be75d3bcb5d04376b9..a9101f8e1858f2b93f4ec8940469ca6947d80c6c 100644
(file)
--- a/
03/03b.bqn
+++ b/
03/03b.bqn
@@
-5,6
+5,6
@@
PriorityLC←{( 1+𝕩-'a')×(𝕩≥'a')∧(𝕩≤'z')}
PriorityUC←{(27+𝕩-'A')×(𝕩≥'A')∧(𝕩≤'Z')}
Priority←PriorityLC+PriorityUC
-Main←{+´
(Priority (⊑Intersect´)¨<˘Group𝕩)
}
+Main←{+´
Priority(⊑Intersect´)˘Group𝕩
}
•Show Main •file.Lines ⊑•args