Skip to content

Instantly share code, notes, and snippets.

View kostis's full-sized avatar

Kostis Sagonas kostis

  • NTUA, Greece + Uppsala University, Sweden
  • Athens + Uppsala
View GitHub Profile

Current Syntax

Existing map specification syntax, as was introduced in 17.0, allows the following different syntaxes:

  • map() or #{}: the type of any map (of any size).

  • #{a => integer(), b => list()}

A map that may only contain keys a and b. If it contains a key a, then it must be mapped to an integer value. Analogously for b.