RosettaCodeData/Task/Extend-your-language/Langur/extend-your-language-2.langur
2024-04-19 16:56:29 -07:00

7 lines
250 B
Text

switch[and] .x, .y {
case true: ... # both true
case true, false: ... # first true, second false
case false, true: ... # first false, second true
case null, _: ... # first null
default: ... # other
}