Bend/tests/golden_tests/run_lazy/box.bend
2024-05-15 00:25:46 +02:00

8 lines
199 B
Plaintext

data _Box = (Box val)
Box/subst (_Box/Box n) from to = (Box/subst/go n (== from n) to)
Box/subst/go a 0 to = (_Box/Box a)
Box/subst/go a * to = to
Main = (Box/subst (_Box/Box 4) 4 (_Box/Box 10))