From 44edcbac1a3360211b1fbca6d50baac9e826f3a1 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 4 Dec 2024 13:36:47 -0800 Subject: [PATCH] [2024][uiua][4.x] refactoring --- 2024/uiua/day_04.ua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2024/uiua/day_04.ua b/2024/uiua/day_04.ua index f6029f6..65920ae 100644 --- a/2024/uiua/day_04.ua +++ b/2024/uiua/day_04.ua @@ -13,12 +13,12 @@ $ MXMXAXMASX ⊜∘≠@\n. Input ← -Search ← /+♭≡(◇⌕) ⊙¤ +Search ← /+♭≡(◇⌕) ♭≡[⍥₃⊸(⍉⇌)] ⊙¤ Diagonal ← ≡⊏×⟜⊞=.+₁⇡⟜↯4 "\WXMAS" -Part₁ ← Search {∩⍥₃⊸(⍉⇌) Diagonal ¤"XMAS"} +Part₁ ← Search {Diagonal ¤"XMAS"} -Part₂ ← Search [⍥₃⊸(⍉⇌)]↯3_3"M\WM\WA\WS\WS" +Part₂ ← Search {↯3_3"M\WM\WA\WS\WS"} $Part₁ Part₁ Input $Part₂ Part₂ Input