fn.ion 251 B

123456789101112131415161718192021222324
  1. fn first_test a b c
  2. echo $a
  3. echo $b
  4. echo $c
  5. end
  6. first_test hello world goodbye
  7. fn another_test
  8. for i in 1..10
  9. echo $i
  10. end
  11. end
  12. another_test
  13. fn square n:int
  14. math $n \* $n
  15. end
  16. for num in 1 2 3 4 5 a 1.5
  17. square $num
  18. end