Have a look into
10 Killer Elixir Tips #6
Code is never best nor better, It gets altered
Published in
5 min readAug 29, 2017
Hey Guys .. !
Welcome to anther set of 10 Killer Elixir Tips..
Read if you missed Killer Elixir Tips#1 #2 #3 #4 #5
Elixir version 1.5.1 & Erlang otp version 20
10 -> Extracting Project Information
Mix.Project.config[:version] # returns the version
Mix.Project.config[:app] # returns app name
You have to be inside the mix project
when you are trying.
See this in action…
9 -> Inner Binary Representation of String
This is a common trick in elixir
. You have to concatenate the null byte <<0>>
to a string that you want to see its inner binary representation like in the following way…
iex> “hello” <> <<0>>
<<104, 101, 108, 108, 111, 0>>