aboutsummaryrefslogtreecommitdiff
path: root/doc/js-expression-iota.scm
blob: 066e4aecb9192b6be9d870e97b670448d0f5b7e8 (plain)
1
2
3
4
5
6
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))