📜  长生不老药案例语句 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:16.929000             🧑  作者: Mango

代码示例1
iex> case {1, 2, 3} do
...>   {4, 5, 6} ->
...>     "This clause won't match"
...>   {1, x, 3} ->
...>     "This clause will match and bind x to 2 in this clause"
...>   _ ->
...>     "This clause would match any value"
...> end
"This clause will match and bind x to 2 in this clause"