Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Factorial/Tailspin/factorial-1.tailspin
Normal file
6
Task/Factorial/Tailspin/factorial-1.tailspin
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
templates factorial
|
||||
when <0..> do
|
||||
@: 1;
|
||||
1..$ -> @: $@ * $;
|
||||
$@ !
|
||||
end factorial
|
||||
4
Task/Factorial/Tailspin/factorial-2.tailspin
Normal file
4
Task/Factorial/Tailspin/factorial-2.tailspin
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
templates factorial
|
||||
when <=0> do 1 !
|
||||
when <0..> $ * ($ - 1 -> factorial) !
|
||||
end factorial
|
||||
Loading…
Add table
Add a link
Reference in a new issue