more examples
All checks were successful
/ test (push) Successful in 47s

This commit is contained in:
Neemek 2026-07-15 21:50:23 +02:00
parent 9e90bdfc33
commit ca0031431d
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
19 changed files with 287 additions and 0 deletions

15
examples/imp.ang Normal file
View file

@ -0,0 +1,15 @@
func is_cool(x: number|string) boolean {
if x == "cool" {
return true
} else if x == 69 {
return true
}
return nil
}
write(str(is_cool("not cool")))
write(str(is_cool("cool")))
write(str(is_cool(0)))
write(str(is_cool(69)))