advent-of-code/2018/3.moon

8 lines
170 B
Plaintext
Raw Normal View History

2019-12-10 14:15:38 -06:00
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