NullAsOpt.yqls 316 B

12345678910
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. (let ct (ParseType '"(Uint32?,Uint32)->Uint32"))
  5. (let callable (Callable ct (lambda '(x y) (Coalesce x y))))
  6. (let world (Write! world res_sink (Key) (Apply callable (Null) (Uint32 '2)) '()))
  7. (let world (Commit! world res_sink))
  8. (return world)
  9. )