Since people are posting solutions to advent of code, I decided to take a stab at it in KAP. Here's my solution for the first problem, assuming input data is in the file part01.txt
+/0>2-/ ⍎¨ io:read "part01.txt"Conversation
Notices
-
Elias Mårtenson (loke@functional.cafe)'s status on Wednesday, 01-Dec-2021 19:18:24 CET Elias Mårtenson - Ekaitz Zárraga 👹 repeated this.
-
Elias Mårtenson (loke@functional.cafe)'s status on Wednesday, 01-Dec-2021 19:18:24 CET Elias Mårtenson And the second case in KAP just adds another few characters to the solution in order to compute the window:
+/0>2-/3+/ ⍎¨ io:read "part01.txt"