aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/runtime_make_code.sql
blob: c340ce6fda5ba74dc2a4e960ca79b9741278b94c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* postgres can not */
/* syntax version 1 */
select FormatCode(
    ListCode(
        AtomCode("1"),
        AsList(AtomCode("2"),AtomCode("3")),
        FuncCode("Func",
            AtomCode("4"),
            AsList(AtomCode("5"),AtomCode("6"))),
        LambdaCode(()->{ return AtomCode("7") }),
        LambdaCode(($x)->{ return FuncCode("-",$x) }),
        LambdaCode(($x,$y)->{ return FuncCode("*",$x,$y) }),
        LambdaCode(2, ($args)->{ return FuncCode("+",Unwrap($args[0]),Unwrap($args[1])) }),
    )
);