RosettaCodeData/Task/Conditional-structures/Nemerle/conditional-structures-2.nemerle
2023-07-01 13:44:08 -04:00

6 lines
110 B
Text

match(x)
{
|1 => "x is one"
|x when (x < 5) => "x is less than five"
|_ => "x is at least five"
}