6 lines
110 B
Text
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"
|
|
}
|