Arithmetic.yqls 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. (let res (List (ListType (DataType 'Uint64))))
  5. (let res (Append res (+ (Int32 '5) (Uint64 '5))))
  6. (let res (Append res (+ (Int32 '-5) (Uint64 '5))))
  7. (let res (Append res (+ (Uint64 '5) (Int32 '-5))))
  8. (let world (Write! world res_sink (Key) res '('('type))))
  9. (let res (List (ListType (DataType 'Uint64))))
  10. (let res (Append res (- (Int32 '5) (Uint64 '5))))
  11. (let res (Append res (- (Int32 '-5) (Uint64 '5))))
  12. (let res (Append res (- (Uint64 '5) (Int32 '-5))))
  13. (let world (Write! world res_sink (Key) res '('('type))))
  14. (let res (List (ListType (DataType 'Uint64))))
  15. (let res (Append res (* (Int32 '5) (Uint64 '5))))
  16. (let res (Append res (* (Int32 '-5) (Uint64 '5))))
  17. (let res (Append res (* (Uint64 '5) (Int32 '-5))))
  18. (let world (Write! world res_sink (Key) res '('('type))))
  19. (let res (List (ListType (OptionalType (DataType 'Uint64)))))
  20. (let res (Append res (/ (Int32 '5) (Uint64 '5))))
  21. (let res (Append res (/ (Int32 '-5) (Uint64 '5))))
  22. (let res (Append res (/ (Uint64 '5) (Int32 '-5))))
  23. (let world (Write! world res_sink (Key) res '('('type))))
  24. (let res (List (ListType (OptionalType (DataType 'Uint64)))))
  25. (let res (Append res (% (Int32 '5) (Uint64 '5))))
  26. (let res (Append res (% (Int32 '-5) (Uint64 '5))))
  27. (let res (Append res (% (Uint64 '5) (Int32 '-5))))
  28. (let world (Write! world res_sink (Key) res '('('type))))
  29. (let world (Commit! world res_sink))
  30. (return world)
  31. )