Why doesnt julia support something like switch case
function switch_case(x) if x == 1 println(“Case 1”) elseif x == 2 println(“Case 2”) elseif x == 3 println(“Case 3”) else println(“Default case”) end end switch_case(2) Solution 1: Using if-elseif-else statements One