Skip to content

Switch

Multi-way branching — the first pattern that matches wins.

$ wo 'Switch[2, 1, "one", 2, "two", _, "other"]'
two