daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 !!!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top