FuncCall
node might be translated into other expression that bears different semantics, as explained in Section 4.[
expr { ,
expr } ]
| []
)expr.
funcId
123
is the parameter and square
is the function identifier. In other words, it means applying 123
to the function square
.expr.
{ funcId(
expr)
}
1
and x
to the function plus
,"Hello world"
, "Hello"
and "Bye"
to the function named replace
with
,myHashMap
, "key"
and 123
to the function add
->
. id [ typeAnnotation ]|
expr
x
is the parameter and x.+(5)
is the lambda body..apply
as follows:.
( funcId | { funcId(
expr)
})
.reverse
x | x.reverse
.+(2)
x | x.+(2)
.replace("Hello") with("Hi")
x | x.replace("Hello") with("Hi")
select
.negate
functions.