StringWith.yqls 1.6 KB

123456789101112131415161718192021222324252627
  1. (
  2. #comment
  3. (let config (DataSource 'config))
  4. (let res_sink (DataSink 'result))
  5. (let world (Write! world res_sink (Key) (StartsWith (Utf8 '12345) (String '"")) '('('type))))
  6. (let world (Write! world res_sink (Key) (StartsWith (Just (String '12345)) (String '124)) '('('type))))
  7. (let world (Write! world res_sink (Key) (StartsWith (String '12345) (Just (String '123456))) '('('type))))
  8. (let world (Write! world res_sink (Key) (StartsWith (Just (String '567)) (Just (Utf8 '56))) '('('type))))
  9. (let world (Write! world res_sink (Key) (StartsWith (Utf8 'abcad) (String 'ab)) '('('type))))
  10. (let world (Write! world res_sink (Key) (StartsWith (Utf8 'xyz) (Utf8 'xyz)) '('('type))))
  11. (let world (Write! world res_sink (Key) (StartsWith (Utf8 'one) (Null)) '('('type))))
  12. (let world (Write! world res_sink (Key) (StartsWith (Null) (Utf8 'two)) '('('type))))
  13. (let world (Write! world res_sink (Key) (EndsWith (Utf8 '12345) (String '"")) '('('type))))
  14. (let world (Write! world res_sink (Key) (EndsWith (Just (String '12345)) (String '346)) '('('type))))
  15. (let world (Write! world res_sink (Key) (EndsWith (String '12345) (Just (String '012345))) '('('type))))
  16. (let world (Write! world res_sink (Key) (EndsWith (Just (String '567)) (Just (Utf8 '67))) '('('type))))
  17. (let world (Write! world res_sink (Key) (EndsWith (Utf8 'abcad) (String 'ad)) '('('type))))
  18. (let world (Write! world res_sink (Key) (EndsWith (Utf8 'xyz) (Utf8 'xyz)) '('('type))))
  19. (let world (Write! world res_sink (Key) (EndsWith (Utf8 'one) (Null)) '('('type))))
  20. (let world (Write! world res_sink (Key) (EndsWith (Null) (Utf8 'two)) '('('type))))
  21. (let world (Commit! world res_sink))
  22. (return world)
  23. )