Collections

  • Array - Arrays are the basic way for keeping a list of data
  • Stack - Keep track of items like a stack of plates. Most recent gets added to the top, and you can only take the most recent from the top.
  • Queue - Keep track of items like a bakery queue. Most recent is added to the back of the queue, and you can only take from the front of the queue (ie the oldest)
  • Set - Sets keep track of unique items.
  • Map - Keeps track of key-value pairs.
  • Expiring Map - A forgetful map.

Patterns