blob: e2e95e299bc02ef7c236a6fcf9b7113873c66025 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
(
(let mr_source (DataSource 'yt 'plato))
(let x (Read! world mr_source
(Key '('table (String 'Input)))
(Void) '()))
(let world (Left! x))
(let table1 (Right! x))
(let table2 (Map table1 (lambda '(x) (block '(
(let s (Struct))
(let s (AddMember s 'value (Member x 'value)))
(let s (AddMember s 'subkey (Member x 'subkey)))
(let s (AddMember s 'key (Member x 'key)))
(return s)
)))))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink
(Key)
table2 '()))
(let world (Commit! world res_sink))
(return world)
)
|