if/unless. 在Elixir中也有if的語法,用法為: iex> age = 20 iex> if age == 18, do: "you are so young", else: "bye" "bye". 並且提供了如下的語法糖:
確定! 回上一頁