MapNextWithUnusedNext.yqls 372 B

12345678910111213
  1. (
  2. (let config (DataSource 'config))
  3. (let lst (AsList (Int32 '0) (Int32 '1) (Int32 '2) (Int32 '3)))
  4. (let lst (Iterator lst))
  5. (let lst (MapNext lst (lambda '(current next) (+ current (Int32 '1)))))
  6. (let lst (ForwardList lst))
  7. (let res_sink (DataSink 'result))
  8. (let world (Write! world res_sink (Key) lst '('('type))))
  9. (let world (Commit! world res_sink))
  10. (return world)
  11. )