Create smnp.lang package with basic get() methods for map and list

This commit is contained in:
2020-03-09 21:41:52 +01:00
parent 8ca966b376
commit 3c25833122
10 changed files with 82 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ abstract class Function(val name: String) {
.firstOrNull { (_, args) -> args.signatureMatched }
?: throw FunctionInvocationException(this, arguments)
return definition.body(environment, args.arguments)
return definition.body(environment, arguments.toList())
}
val signature: String