[:yecc, :leex, :erlang, :elixir, :xref, :app]. It can be used in your
mix.exsto prepend or append new compilers to Mix:
[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_nameof the each map, generally we go for
enum. We can also achieve this by using the
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.
nilfor key which is not in the
Access.all()and inside the list of keys
[:books, Access.all(), :name], the value of the key
:booksshould 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_stringis just changed something like
<< x <- b_string >>to make the sense.
IO.stream(:stdio, :line)will the read a line input from the keyboard.
sub_strlike function in elixir. However you can achieve that by
["hello", "blackode"]then use