Skip to main content
Shared Runs in your resource.
  • DeepCopy keeps cycles and shared references. Metatables are not copied.
  • Merge returns a new table and changes neither argument. Maps merge deeply, arrays from override replace arrays in base.
  • Count counts every key, not only the array part.
  • Keys and Values have no defined order for maps. Values keeps the order of arrays.
  • Map(tbl, fn(value, key)) keeps the keys. Filter(array, fn(value, index)) keeps the order.
  • Find(tbl, fn(value, key)) searches arrays in order first, then other keys.
  • Equals compares deeply and ignores metatables.
  • Freeze returns a read-only view, nested tables included. Writes raise. ipairs, pairs and # work.

Example