aboutsummaryrefslogtreecommitdiff
path: root/doc/js-expression-iota.scm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/js-expression-iota.scm')
-rw-r--r--doc/js-expression-iota.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/js-expression-iota.scm b/doc/js-expression-iota.scm
new file mode 100644
index 0000000..066e4ae
--- /dev/null
+++ b/doc/js-expression-iota.scm
@@ -0,0 +1,7 @@
+(define iota
+ (js-expression #:inputs (n #:type int)
+ #:expression "$({\"sequence\": Array.from(Array(inputs.n).keys())})"
+ #:outputs (sequence #:type (array int))))
+
+(workflow ((n #:type int))
+ (iota #:n n))