Top "Elixir" questions

Elixir is an open-source, dynamic, compiled, general purpose functional programming language.

How to join strings in Elixir?

How do I join two strings in a list with a space, like: ["StringA", "StringB"] becomes "StringA StringB"

elixir
How do you check for the type of variable in Elixir

In Elixir how do you check for type such as in Python: >>> a = "test" >>> …

elixir
Convert Elixir string to integer or float

I need to convert a string to a floating point value or an integer. There was no method such as, …

elixir
Add new element to list

I was trying to add a new element into a list as follow: iex(8)> l = [3,5,7,7,8] ++ 3 [3, 5, 7, 7, 8 | 3] iex(9)> l [3, 5, 7, 7, 8 | 3] Why …

elixir
How to check if an item exists in an Elixir list or tuple?

This is seemingly simple, but I can't seem to find it in the docs. I need to simply return true …

elixir
Getting the current date and or time in Elixir

This seems like a really dumb question but how does one get and display the current date or time in …

elixir
Good IDE for Elixir

I am looking for an IDE that does atleast some of the following Code completion when typing variable names and …

ide elixir
How to convert map keys from strings to atoms in Elixir

What is the way to convert %{"foo" => "bar"} to %{foo: "bar"} in Elixir?

elixir
How to generate a random number in Elixir?

I need to generate a random number. I found the Enum.random/1 function, but it expects an enumerable such as …

random integer elixir
Elixir Sleep / Wait for 1 Second

How to sleep / wait for one second? Best I could find was something like this (in iex): IO.puts "foo" ; :…

elixir iex