结构调整2

This commit is contained in:
2026-02-12 14:55:48 +08:00
parent 5e75402b43
commit cfcdfde170
19 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import std.io;
func greeting(name:String) -> String
{
return "Hello " + name + "!";
}
io.println(greeting("Fig"));
func adder(x)
{
return func (n) => x + n; // closure
}
const add2 = adder(2);
io.println(add2(3));