add Io mode
This commit is contained in:
parent
7a3a84c858
commit
09ddbeb341
5 changed files with 259 additions and 5 deletions
6
demo/kitchen-sink/docs/io.io
Normal file
6
demo/kitchen-sink/docs/io.io
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// computes factorial of a number
|
||||
factorial := method(n,
|
||||
if(n == 0, return 1)
|
||||
res := 1
|
||||
Range 1 to(n) foreach(i, res = res * i)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue