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

(import sqr_module '"/lib/yql/sqr.yql")
(let mySqr (bind sqr_module 'sqr))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink (Key) (Apply mySqr (Uint32 '4)) '('('type))))
(let world (Commit! world res_sink))
(return world)
)