RosettaCodeData/Task/Function-definition/Nemerle/function-definition.nemerle
2023-07-01 13:44:08 -04:00

5 lines
223 B
Text

public Multiply (a : int, b : int) : int // this is either a class or module method
{
def multiply(a, b) { return a * b } // this is a local function, can take advantage of type inference
return multiply(a, b)
}