blob: ee940f6d9380896bb6ab58e3a02e53b8b0694f6c (
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
24
25
26
|
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))
(let res_sink (DataSink 'result))
(let f1 (lambda '(x y) (block '(
(return (+ x y))
))))
(let f2 (lambda '(x) (block '(
(return (Apply f1 x (Uint64 '2)))
))))
(let writer (lambda '(world data) (block '(
(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(return world)
))))
(let data1 (Apply f2 (Uint64 '3)))
(let data2 (Apply f2 (Uint64 '4)))
(let world (Apply writer world data1))
(let world (Apply writer world data2))
(return world)
)
|