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} 与代码示例中给出的不同的案例模式匹配。 如果和除非条件语句