Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ys-0
|
||||
!yamlscript/v0
|
||||
|
||||
defn main(n):
|
||||
say: "$n! = $factorial(n)"
|
||||
defn main(n=10):
|
||||
say: "$n! -> $factorial(n)"
|
||||
|
||||
defn factorial(x):
|
||||
apply *: 2 .. x
|
||||
2 .. x: .mul(*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue