Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
12
Task/Mutual-recursion/Oforth/mutual-recursion.oforth
Normal file
12
Task/Mutual-recursion/Oforth/mutual-recursion.oforth
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Method new: M
|
||||
|
||||
Integer method: F
|
||||
self 0 == ifTrue: [ 1 return ]
|
||||
self self 1 - F M - ;
|
||||
|
||||
Integer method: M
|
||||
self 0 == ifTrue: [ 0 return ]
|
||||
self self 1 - M F - ;
|
||||
|
||||
0 20 seqFrom map(#F) println
|
||||
0 20 seqFrom map(#M) println
|
||||
Loading…
Add table
Add a link
Reference in a new issue