Commit 2a86f468 authored by Jack Q's avatar Jack Q
Browse files

Add simple closure test

parent 865953b5
# a simple closure
# Output:
# 5
# Exit:
# 0
# Program:
int{int} f(int x) is
return (\(int y) -> x + y)
int{int} x = call f(2);
int y = call x(3);
println y
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment