advent-of-code/2018/3.moon
Daniel Flanagan 4dffda42ca WIP day 2
2019-12-10 14:15:38 -06:00

8 lines
170 B
Plaintext

require "common"
pattern = "#(%d+)%s*@%s*(%d+),(%d+):%s*(%d+)x(%d+)"
input = -> input_matcher 3, pattern
reduce input!, 0, (n, x, y, w, h) =>
print @, n, x, y, w, h
0