[:yecc, :leex, :erlang, :elixir, :xref, :app]
.
It can be used in your mix.exs
to prepend or append new compilers to Mix:head
and tail
like [head | tail]
. We can use the same principle for picking out the elements in the list like the following way…[maps]
where you have to extract first_name
of the each map, generally we go for enum
. We can also achieve this by using the get_in
and Access.all()
get_in
along with Access.all()
, as the first value in the list of keys like above, the users datatype should be list. If you pass the map, it returns the error.nil
for key which is not in the map
.Access.all()
and inside the list of keys [:books, Access.all(), :name]
, the value of the key :books
should return the list, other wise it raises an error.for x <- [1, 2, 3], do: x + 1
. But we can also add the comprehension along with filter.<<>>
x <- b_string
is just changed something like << x <- b_string >>
to make the sense.IO.stream(:stdio, :line)
will the read a line input from the keyboard.:only
explicitly.sub_str
like function in elixir. However you can achieve that by String.slice/2
["hello", "blackode"]
then use Enum.join