ReplaceMember.yqls 369 B

123456789101112
  1. (
  2. #comment
  3. (let config (DataSource 'config))
  4. (let res_sink (DataSink 'result))
  5. (let s (AsStruct '('a (String 'ccc)) '('b (Double '3.5))))
  6. (let world (Write! world res_sink (Key) (ReplaceMember s 'a (Int32 '7)) '('('type))))
  7. (let world (Write! world res_sink (Key) (ReplaceMember s 'b (String 'aaa)) '('('type))))
  8. (let world (Commit! world res_sink))
  9. (return world)
  10. )