RosettaCodeData/Task/Function-definition/Fantom/function-definition.fantom

9 lines
163 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
class FunctionDefinition
{
public static Void main ()
{
multiply := |Int a, Int b -> Int| { a * b }
echo ("Multiply 2 and 4: ${multiply(2, 4)}")
}
}