Open GoogleCodeExporter opened 9 years ago
function counter = : -> integer count
function add = integer a, integer b - > integer c
entrypoint:
{
integer start = 100
add adder = lambda { c = a * b }
counter = lambda { count = ++start }
print(counter()) //prints 101
print(adder(1, 5)) //prints 5
print(adder(counter(), counter()); //prints 205
}
Original comment by ryoohki@gmail.com
on 15 Feb 2012 at 8:48
Original issue reported on code.google.com by
don.ap...@gmail.com
on 15 Feb 2012 at 8:30