Files
TDT4205/ps2/vsl_programs/ps2-parser/simple-functions.vsl
2026-02-14 10:45:32 +01:00

17 lines
207 B
Plaintext

func main() {
print("Should be 7:", identity(first(second(5, 7), first(2, 9))))
}
func identity(argument) {
return argument
}
func first(a, b) {
return a
}
func second(a, b) {
return b
}