From 7d1cc9b535afeb6021bec83b3220928998361528 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 14 Nov 2023 23:23:57 +0000 Subject: doc: Add scatter-gather snippet. I forgot to add this file in my previous commit. * doc/scatter-gather.scm: New file. --- doc/scatter-gather.scm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/scatter-gather.scm diff --git a/doc/scatter-gather.scm b/doc/scatter-gather.scm new file mode 100644 index 0000000..7ab60d4 --- /dev/null +++ b/doc/scatter-gather.scm @@ -0,0 +1,8 @@ +(define print + (command #:inputs (message #:type string) (other-message #:type string) + #:run "echo" message other-message + #:outputs (printed-output #:type stdout))) + +(workflow ((message #:type string) (other-messages #:type (array string))) + (scatter (print #:message message) + #:other-message other-messages)) -- cgit v1.2.3