mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 03:18:43 +08:00
complete simple tutorial
This commit is contained in:
+1
-3
@@ -1,8 +1,6 @@
|
||||
import("lib.nas");
|
||||
|
||||
var student=func(name,age)
|
||||
{
|
||||
var (n,a)=(name,age);
|
||||
var student=func(n,a){
|
||||
return {
|
||||
print_info:func println(n,' ',a),
|
||||
set_age: func(age) a=age,
|
||||
|
||||
Reference in New Issue
Block a user