checkpoint
This commit is contained in:
10
examples/basic/function0004.ngr
Normal file
10
examples/basic/function0004.ngr
Normal file
@@ -0,0 +1,10 @@
|
||||
function make_adder(x)
|
||||
function (y)
|
||||
x + y;
|
||||
|
||||
add1 = make_adder(1);
|
||||
add2 = make_adder(2);
|
||||
one_plus_one = add1(1);
|
||||
one_plus_three = add1(3);
|
||||
print one_plus_one;
|
||||
print one_plus_three;
|
||||
Reference in New Issue
Block a user