Lua中的table函数库整理与实践

2014-2-12 杜世伟 Lua

Lua table库由一些操作table的辅助函数组成。他的主要作用之一是对Luaarray的大小给出一个合理的解释。另外还提供了一些从list中插入删除元素的函数,以及对array元素排序函数。

Lua中是没有array概念的,不过可以通过tabel数据结构实现对array的操作。以下是lua提供的函数,可能版本不同支持的函数也有所不同了

阅读全文>>

标签: lua table table.setn table.getn table.remove table.sort

评论(0) 浏览(6434)

Powered by emlog 沪ICP备2023034538号-1