diff options
| -rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -191,8 +191,11 @@ Powerful alternative to `switch`. ```zc match val { 1 => print("One"), - 2 | 3 => print("Two or Three"), - 4..10 => print("Range"), + 2 || 3 => print("Two or Three"), // OR with || + 4 or 5 => print("Four or Five"), // OR with 'or' + 6, 7, 8 => print("Six to Eight"), // OR with comma + 10..15 => print("10 to 14"), // Exclusive range + 20..=25 => print("20 to 25"), // Inclusive range _ => print("Other") } |
