Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 18/10/2015
- --Last update: 17/05/2016
- --[[ Notes:
- Does:
- Funciona como um table.remove, porém você poderá chamar o valor ao invés da key.
- Args:
- list --> Tabela
- value --> Valor
- ]]--
- table.destroy=function(list,value)
- for k,v in next,list do
- if v == value then
- table.remove(list,k);break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement