IndexDictOpt.yqls 372 B

12345678910111213141516171819
  1. (
  2. #comment
  3. (let config (DataSource 'config))
  4. (let res_sink (DataSink 'result))
  5. (let t (AsList
  6. (String 'a)
  7. (String 'b)
  8. ))
  9. (let jt (Just t))
  10. (let n (Nothing (TypeOf jt)))
  11. (let world (Write! world res_sink (Key) (ToIndexDict jt) '('('type))))
  12. (let world (Write! world res_sink (Key) (ToIndexDict n) '('('type))))
  13. (let world (Commit! world res_sink))
  14. (return world)
  15. )