blob: ce6e8f7d63baf4eb98c48fac5e095713bf2d947e [file] [edit]
add : { x: U8, y: U8 }# -> U8;
add r =
take r2 { x = a } = r in
take r3 { y = b } = r2 in
if a == 0 then b
else add { x = a-1, y = b+1 }
end
end
end;