Closed mfichman closed 11 years ago
match variable { with 8: Io::println('matched 8') with 7: Io::println('matched 7') default: Io::println('default') }
Default case uses the wildcard * character:
*
match var { with *: Io::println("default") }