RosettaCodeData/Task/Conditional-structures/Nemerle/conditional-structures-2.ne...

7 lines
110 B
Plaintext

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