Returns one of a collection of expressions based on the value of the switch expression.
alias numberName = staticPredSwitch!( 1, "one", 2, "two", 3, "three", "many", ); static assert("one" == numberName(1)); static assert("two" == numberName(2)); static assert("three" == numberName(3)); static assert("many" == numberName(4));
See Implementation
Returns one of a collection of expressions based on the value of the switch expression.