aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Optimizers/ConstMapThenFold1.yql
blob: dbb25f37ee125afcf720d56914e5508be7b4e261 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let list1 (AsList (String 'a) (String 'b) (String 'c)))
(let map (Map list1 (lambda '(x) (Uint32 '1))))
(let data (Fold1 map (lambda '(item) item) (lambda '(item state) (+ item state))))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)