Answers for "Elixir"

2

elixir if statement

iex> if true do
...>   "This works!"
...> end
"This works!"

iex> unless true do
...>   "This will never be seen"
...> end
nil

iex> if nil do
...>   "This won't be seen"
...> else
...>   "This will"
...> end
"This will"
Posted by: Guest on February-24-2021
0

Elixir

Example for Elixir Code:
iex> "Elixir" |> String.graphemes() |> Enum.frequencies()
%{"E" => 1, "i" => 2, "l" => 1, "r" => 1, "x" => 1}
Posted by: Guest on October-16-2021
0

elixir version 1.1

kiex list known
Getting the available releases from https://github.com/elixir-lang/elixir/releases

  Known Elixir releases:
     1.2.1
     1.2.0
     1.2.0-rc.1
     1.2.0-rc.0
     1.1.1
     1.1.0
     1.1.0-rc.0
     0.9.3
     0.9.2
     0.9.1
     0.9.0
     0.8.3
     0.8.2
     0.8.1
     0.8.0
     0.7.2
     1.0.5
     1.0.4
     1.0.3
     1.0.2
     1.0.1
     1.0.0
     1.0.0-rc2
     1.0.0-rc1
     0.15.1
     0.15.0
     0.14.3
     0.14.2
     0.14.1
     0.14.0
Posted by: Guest on March-08-2021
0

elixir true

# in
1 in [1,2,3] ==true
Posted by: Guest on August-10-2020

Browse Popular Code Answers by Language