See SLS 6.6 Function Applications . The purpose of the function is determined as follows:
SimpleExpr ::= SimpleExpr1 ArgumentExprs ArgumentExprs ::= '(' [Exprs] ')' ... | [nl] BlockExpr
And BlockExpr is
BlockExpr ::= '{' CaseClauses '}' | '{' Block '}'
So, after the name of the function or method, you can specify a list of arguments in brackets or an expression in curly brackets.
source share