def split(line, lines):
out = empty((len(lines) + <NUM_LIT:1>, <NUM_LIT:4>))<EOL>p1 = line[:<NUM_LIT:2>]<EOL>for n, l2 in enumerate(lines):<EOL><INDENT>p2 = intersection(line, l2)<EOL>out[n][:<NUM_LIT:2>] = p1<EOL>out[n][<NUM_LIT:2>:] = p2<EOL>p1 = p2<EOL><DEDENT>out[n + <NUM_LIT:1>][:<NUM_LIT:2>] = p2<EOL>out[n + <NUM_LIT:1>][<NUM_LIT:2>:] = line[<NUM_LIT:2>:]<EOL>return out<EOL>
split <line> into multiple sublines
using intersection with <lines>