It looks like you are trying to define an anonymous (lambda) function in the global scope which is syntactically not valid. To make this work, you need to assign the lambda function to a variable. For example:
let myLambda = (x, y, z) -> {
// Do something here
};
// You can now use the lambda function like this:
myLambda(1, 2, 3);
Also note that when declaring a lambda function, the arrow (->) must be on the same line as the arguments:
let myLambda = (x, y, z) -> {
// Do something here
};