more examples
This commit is contained in:
parent
c5a843ea39
commit
9003149114
19 changed files with 287 additions and 0 deletions
15
examples/imp.ang
Normal file
15
examples/imp.ang
Normal 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)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue