Weird moments in Elixir




Calling Erlang external libraries.

Say you have the huge bunch of erlang libaries goodies from here, how do you call it?  Well, fire up your iex and then run the following command :

:inet.gethostname()

And you get the output.


Map data stucture : creating a map using %{}

map = %{:a => 1, 2 => :b}

Pipe operator |>



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm