blob: 0f6615de39c320dddb2df1e7b5e6443bf0184e9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))
(let list (AsList (String 'a) (String 'b) (String 'c)))
(let data (Fold1 list
(lambda '(item)
'(item))
(lambda '(item state) (block '(
(let x (Concat (Nth state '0) item))
(return '(x)))))))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink
(Key)
data '()))
(let world (Commit! world res_sink))
(return world)
)
|