Create A List Of Atoms
Last updated
Was this helpful?
Last updated
Was this helpful?
The ~w
sigil makes it easy to create a word list -- a list of strings -- where each word is separated by a space.
By appending an a
onto that sigil construct, you are instructing Elixir that you would instead like a list of atoms.