Advertisement
SinisterMemories

Dictionary.lua

Apr 10th, 2020
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.15 KB | None | 0 0
  1. local dictionary = {}
  2.  
  3. function dictionary.remove(dict, index)
  4.     local value = dict[index]
  5.  
  6.     dict[index] = nil
  7.  
  8.     return value
  9. end
  10.  
  11. return dictionary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement