July
3rd,
2016
##Interactive mode
Open up iex
iex> 40+2
42
iex> "hello" <> " world"
"hello world"
##Running scripts
demo.exs
IO.puts "Hello world from Elixir."
run with elixir
$ elixir demo.exs
Hello world from Elixir.
##Basic types
Elixir basic types: integers,floats,booleans,strings,list,atoms,tuples.
iex> is_atom(false)
true
iex> true == :true
true
iex> is_binary("hello")
true