Skip to content

Commit

Permalink
Day 5 shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 5, 2022
1 parent 0855fba commit 595e144
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p5.dyalog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
⎕IO1 p q{ר}⎕NGET'p5.txt'1
p~' '¨(0 1 0 0p)1p q¨¨'\d+'⎕S'&'¨q
f{(¨),¨¨¨} g{(-)0⍺⍺f@(1)}
¨g/(q),p part 1
¨g/(q),p part 2
p~' '¨{/2=4|}p q¨¨'\d+'⎕S'&'¨q
f{(¨¨),¨¨} g{()0⍺⍺f@(1)}
¨g/(q),p part 1
¨g/(q),p part 2

0 comments on commit 595e144

Please sign in to comment.