Result Expressions

result is used to refer to the current methods result. If the method has no return type the result keyword won't compile. Inside an anonymous/lambda result refers to the anonymous itself, not to the method it's defined in. result can be used like a normal variable.

method Test: Integer;
  result := 15;