可以参考如下脚本:
(x -> select * from x where id > 7)(select * from t where id > 5) 定义一个 lambda 函数 x -> select * from x where id > 7,select * from t where id > 5 作为传入的参数。 |
可以参考如下脚本:
(x -> select * from x where id > 7)(select * from t where id > 5) 定义一个 lambda 函数 x -> select * from x where id > 7,select * from t where id > 5 作为传入的参数。 |
补充一下连续调用多个lambda 函数的写法
tb = table(0..20 as id)
nested_1 = (x -> select * from x where id > 7)(select * from tb where id > 5)
nested_2 = (x -> select * from x where id > 9)((x -> select * from x where id > 7)(select * from tb where id > 5))
nested_3 = (x -> select * from x where id > 11)((x -> select * from x where id > 9)((x -> select * from x where id > 7)(select * from tb where id > 5)))