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

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3