blob: 37854ea7b8da1e5bb0b3d385e2af350acab13a7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* syntax version 1 */
/* postgres can not */
SELECT
LambdaArgumentsCount(()->(1)),
LambdaArgumentsCount(($x)->($x+1)),
LambdaArgumentsCount(($x, $y)->($x+$y)),
LambdaArgumentsCount(($x?)->($x+1)),
LambdaArgumentsCount(($x, $y?)->($x+$y)),
LambdaOptionalArgumentsCount(()->(1)),
LambdaOptionalArgumentsCount(($x)->($x+1)),
LambdaOptionalArgumentsCount(($x, $y)->($x+$y)),
LambdaOptionalArgumentsCount(($x?)->($x+1)),
LambdaOptionalArgumentsCount(($x, $y?)->($x+$y));
|