blob: 1a1056aa00416bba29fba113ae4217bce33bf5ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
(
#comment
(let mr_source (DataSource 'yt 'plato))
(let r (Read! world mr_source (Key '('table (String 'Input))) (Void) '('('inline))))
(let input (Right! r))
(let out (FlatMap input (lambda '(item) (block '(
(let len (Length input))
(let key (Member item 'key))
(let key (Coalesce (Cast key 'Uint64) (Uint64 '0)))
(return (ListIf (> key len) item))
)))))
(let mr_sink (DataSink 'yt 'plato))
(let world (Write! world mr_sink (Key '('table (String 'Output))) out '('('mode 'append))))
(let world (Commit! world mr_sink))
(return world)
)
|