blob: 48bd5bd2768e48272fb136c27a92b04ea00486ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))
(import id_module '"/lib/yql/id.yql")
(let id (bind id_module 'id))
(let str1 (AsStruct '('a (Uint32 '1)) '('b (String 'a)) '('c (Bool 'true))))
(let str2 (AsStruct '('a (Uint32 '2)) '('b (String 'b)) '('c (Bool 'false))))
(let list1 (Apply id (AsList str1 str2)))
(let list1 (Extend list1 list1))
(let list1 (ExtractMembers list1 '('a)))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink (Key) list1 '()))
(let world (Commit! world res_sink))
(return world)
)
|