|
AR_Engine_SDK
|
Functions | |
| function table | append (a, b) |
| function table | clear (t) |
| function table | count (t, value) |
| function table | equal (a, b) |
| function table | hasvalue (t, value) |
| function table | len (t) |
| function table | merge (a, b) |
| function table | prepose (a, b) |
| function table | removevalue (t, v) |
| function table | unique (t) |
| function table | nums (t) |
| function table | keys (hashtable) |
| function table | values (hashtable) |
| function table | merge (dest, src) |
| function table | insertto (dest, src, begin) |
| function table | indexof (array, value, begin) |
| function table | keyof (hashtable, value) |
| function table | removebyvalue (array, value, removeall) |
| function table | map (t, fn) |
| function table | walk (t, fn) |
| function table | filter (t, fn) |
| function table | unique (t, bArray) |
| function table append | ( | a | , |
| b | |||
| ) |
Generated by EmmyLua(https://github.com/EmmyLua) Created by HongjieFu. DateTime: 2019-08-29 18:58append 仅用于数组 把b数组拼接到a数组中
| a | table |
| b | table |
| function table clear | ( | t | ) |
clear 清空一个table
| t | table |
| function table count | ( | t | , |
| value | |||
| ) |
count 判断table中有几个指定元素
| t | table |
| value | any 元素 |
| function table equal | ( | a | , |
| b | |||
| ) |
equal 判断两个table是否相同
| a | table |
| b | table |
| function table filter | ( | t | , |
| fn | |||
| ) |
filter
| t | table |
| fn | table |
| function table hasvalue | ( | t | , |
| value | |||
| ) |
hasvalue 判断table中是否包含某一元素
| t | table |
| value | any |
| function table indexof | ( | array | , |
| value | , | ||
| begin | |||
| ) |
indexof
| array | table |
| value | table |
| begin | table |
| function table insertto | ( | dest | , |
| src | , | ||
| begin | |||
| ) |
insertto
| dest | table |
| src | table |
| begin | table |
| function table keyof | ( | hashtable | , |
| value | |||
| ) |
keyof
| hashtable | table |
| value | table |
| function table keys | ( | hashtable | ) |
keys
| hashtable | table |
| function table len | ( | t | ) |
len 计算table的长度
| t | table |
| function table map | ( | t | , |
| fn | |||
| ) |
map
| t | table |
| fn | table |
| function table merge | ( | a | , |
| b | |||
| ) |
merge 将b表合并到a表中(a、b中存在同名元素时b中的元素将会覆盖a中的元素)
| a | table |
| b | table |
| function table merge | ( | dest | , |
| src | |||
| ) |
merge
| dest | table |
| src | table |
| function table nums | ( | t | ) |
nums
| t | table |
| function table prepose | ( | a | , |
| b | |||
| ) |
prepose 将b表前置插入a表
| a | table |
| b | table |
| function table removebyvalue | ( | array | , |
| value | , | ||
| removeall | |||
| ) |
removebyvalue
| array | table |
| value | table |
| removeall | table |
| function table removevalue | ( | t | , |
| v | |||
| ) |
removevalue 在table中移除一个与v相等的元素
| t | table |
| v | table |
| function table unique | ( | t | ) |
unique
| t | table |
| function table unique | ( | t | , |
| bArray | |||
| ) |
unique
| t | table |
| bArray | table |
| function table values | ( | hashtable | ) |
values
| hashtable | table |
| function table walk | ( | t | , |
| fn | |||
| ) |
walk
| t | table |
| fn | table |
1.8.15