tvl-depot/users/sterni/exercises/aoc/2022/02/2.bqn
sterni c0e70de17a feat(sterni/aoc/2022): day02 solution
It seems to me that there must be some way to improve this further,
but I'm kind of out of time.

Change-Id: Icf3510b6c126345551125543aec70155b6eeff4e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7498
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
2022-12-02 18:31:30 +00:00

7 lines
268 B
BQN
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

lib •Import •path"/../../lib.bqn"
i 3|"ABCXYZ"¨ ' ' ¨lib.SplitOn¨ •FLines •path"/input"
S1 {1+𝕩+3×3|1+𝕩-𝕨}
S2 {𝕨 S1 3|𝕨+𝕩-1}
•Out "day02.1: "•Fmt +´S1´¨i
•Out "day02.2: "•Fmt +´S2´¨i