summaryrefslogtreecommitdiff
path: root/tests/chain.apl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chain.apl')
-rw-r--r--tests/chain.apl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/chain.apl b/tests/chain.apl
new file mode 100644
index 0000000..c8efeb7
--- /dev/null
+++ b/tests/chain.apl
@@ -0,0 +1,8 @@
+worker←{
+ msg←{1}⍇0
+ ⎕←'Worker id ',(⍕⎕self),' got message: ',(⍕msg),' forwarding to ',⍕⍵
+ ⍵≡⍬: ⎕←'DONE'
+ msg⍈⍵
+}
+last←worker&⍣25⊢⍬
+_←'Hello there'⍈last