Guest User

Untitled

a guest
Apr 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local p = {}
  2. -- p = {}
  3. updateRecord(p, "A", 1, 2, 3, 4)
  4. -- p = { "A", 1, 2, 3, 4, ["A"] = 1 }
  5. updateRecord(p, "B", 1, 2, 3, 4)
  6. -- p = { "A", 1, 2, 3, 4, "B", 1, 2, 3, 4, ["A"] = 1, ["B"] = 6 }
  7. updateRecord(p, "C", 1, 2, 3, 4)
  8. -- p = { "A", 1, 2, 3, 4, "B", 1, 2, 3, 4, "C", 1, 2, 3, 4, ["A"] = 1, ["B"] = 6, ["C"] = 11 }
  9. removeRecord(p, "B")
  10. -- p = { "A", 1, 2, 3, 4, "C", 1, 2, 3, 4, ["A"] = 1, ["C"] = 11 }
  11. -- ["C"] = 11 !!!
Add Comment
Please, Sign In to add comment