MultiMap.yqls 565 B

123456789101112131415
  1. (
  2. #comment
  3. (let config (DataSource 'config))
  4. (let res_sink (DataSink 'result))
  5. (let list (AsList (Int32 '1) (Int32 '2) (Int32 '3)))
  6. (let world (Write! world res_sink (Key) (OrderedMultiMap list
  7. (lambda '(x) x (+ x (Int32 '10)) x)) '('('type))))
  8. (let world (Write! world res_sink (Key) (MultiMap (LazyList list)
  9. (lambda '(x) x (- (Int32 '7) x) (* x x))) '('('type))))
  10. (let world (Write! world res_sink (Key) (Collect (MultiMap (ToFlow list)
  11. (lambda '(x) x (+ x (Int32 '-3)) (Int32 '0)))) '('('type))))
  12. (let world (Commit! world res_sink))
  13. (return world)
  14. )