+/AoC
advent of code
git clone https://git.julia.blue/+/AoC
df63c2c
master
1import re 2 3steps = [] 4with open ("test" )as f : 5for l in f : 6on = len (l .split ()[0 ])== 2 7x1 ,x2 ,y1 ,y2 ,z1 ,z2 = map (int ,re .findall (r"-?\d+" ,l )) 8steps .append ((on , ((x1 ,x2 ), (y1 ,y2 ), (z1 ,z2 )))) 9 10for s in steps : 11s )