Domo.TaggedTuple.---

You're seeing just the macro ---, go back to Domo.TaggedTuple module for more information.

Defines a tagged tuple inline.

The operator is right-associative. It adds a tag or a chain of tags to a value.

Can be used in Expressions and Pattern Matching. Doesn't work in @type definitions, please, use standard tuple syntax {...} there.

Examples

iex> use Domo.TaggedTuple
...> Tag --- 12
{Tag, 12}

iex> use Domo.TaggedTuple
...> A --- Tag --- Chain --- 12
{A, {Tag, {Chain, 12}}}