Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local numbers = {5, 10, 15, 20}
- --using Lua
- for i, v in pairs(numbers) do
- print("index:", i, "value:", v)
- if v == 10 or v == 15 then
- table.remove(numbers, i)
- end
- end
- print(table.concat(numbers, ", "))
Advertisement
Add Comment
Please, Sign In to add comment