一.数组
二.链表
一个简单的链表可以如下实现:
list = nil
list = { next = list, value = 5}
list = { next = list, value = 4}
list = { next = list, value = 3}
while list do --遍历链表
print(list.value)
list = list.next
end
三.队列
https://blog.youkuaiyun.com/Ftworld21/article/details/108113549
1860





