StackOverflow 文件 Elixir Language 教程 條件語句 Case Case Created: November-22, 2018 case {1, 2} do {3, 4} -> "This clause won't match." {1, x} -> "This clause will match and bind x to 2 in this clause." _ -> "This clause would match any value." end case 僅用於匹配特定資料的給定模式。這裡,{1,2} 與程式碼示例中給出的不同的案例模式匹配。 如果和除非條件語句