Merge branch 'lambdas' into compiler-refactor
This commit is contained in:
commit
61f554d563
|
@ -0,0 +1,11 @@
|
||||||
|
import std;
|
||||||
|
|
||||||
|
|
||||||
|
var id = fn (x: int): int {
|
||||||
|
return x;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
print(id(1) == 1);
|
||||||
|
print(fn (x: int): int {return x;}(1) == 1);
|
||||||
|
print(id(1) == fn (x: int): int {return x;}(1));
|
Loading…
Reference in New Issue