Word Lists For Atoms
The ~w
sigil works similarly to Ruby's %w
(word array notation). It allows you to create a list of words (i.e. strings).
It sets itself apart though with some modifiers. The default behavior matches the s
modifier (for strings).
Where it gets more interesting is with the a
modifier allowing you to create a list of atoms.
Note: there is a third modifier, c
, for char lists.
Last updated