mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
10 lines
258 B
Plaintext
10 lines
258 B
Plaintext
# We want the nested calls in foo to be compiled as redexes written in outer to inner order
|
|
# So they should compile to: @foo = root_tree & a ~ ... & b ~ ... & c ~ ...
|
|
foo = @x (a (b (c x)))
|
|
foo2 = (a (b (c 0)))
|
|
|
|
a = @x x
|
|
b = @x x
|
|
c = @x x
|
|
|
|
main = (foo foo2) |