Brackets - Spicery/Nutmeg GitHub Wiki

Positionally Indexed

Brackets Constructor Data-type
[% x, y %] newLinkedList linked list (long form)
[! x, y !] newTuple tuple (long form only)
[: x, y :] newStreamable streamable (long form)
[ x, y ] newVector vector (short)

Mnemonics

  • ! = exclamation is made from stroke+dot, which are different kinds of mark, like the different types in a tuple.
  • % = two things linked by a slash, for a linked list
  • : = one-dot-after-another, like a stream

Key-Indexed

Brackets Constructor Data-type
{ a => x, b => y } newMap map (short form)
{! a=x, b=y !} newRecord record (long form)
{? x, y ?} newSet set (long form)

Mnemonics

  • ? = are you in or out of the set?
  • ! = different kind of things (dot vs line)
  • : = similar things
  • % = links in a chain