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
6
Task/Singleton/Oforth/singleton-1.oforth
Normal file
6
Task/Singleton/Oforth/singleton-1.oforth
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Object Class new: Sequence(channel)
|
||||
Sequence method: initialize(initialValue)
|
||||
Channel newSize(1) := channel
|
||||
@channel send(initialValue) drop ;
|
||||
|
||||
Sequence method: nextValue @channel receive dup 1 + @channel send drop ;
|
||||
6
Task/Singleton/Oforth/singleton-2.oforth
Normal file
6
Task/Singleton/Oforth/singleton-2.oforth
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import: parallel
|
||||
|
||||
: testSequence
|
||||
| s i |
|
||||
Sequence new(0) ->s
|
||||
100 loop: i [ #[ s nextValue println ] & ] ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue