2021-06-03 00:57:46 +00:00
|
|
|
-- ████████ █████ ██████ ██ ███████ ███████
|
|
|
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██ ███████ ██████ ██ █████ ███████
|
|
|
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██ ██ ██ ██████ ███████ ███████ ███████
|
|
|
|
|
|
|
|
-- Functions that operate on tables.
|
|
|
|
-- Lua doesn't exactly come with batteries included, so this is quite an
|
|
|
|
-- extensive collection of functions :P
|
|
|
|
|
2021-06-27 23:56:29 +00:00
|
|
|
local wea = worldeditadditions
|
2021-06-03 00:57:46 +00:00
|
|
|
|
2021-06-27 23:56:29 +00:00
|
|
|
wea.table = {
|
|
|
|
apply = dofile(wea.modpath.."/utils/tables/table_apply.lua"),
|
|
|
|
contains = dofile(wea.modpath.."/utils/tables/table_contains.lua"),
|
2021-11-10 02:07:13 +00:00
|
|
|
deepcopy = dofile(wea.modpath.."/utils/tables/deepcopy.lua"),
|
2021-06-27 23:56:29 +00:00
|
|
|
filter = dofile(wea.modpath.."/utils/tables/table_filter.lua"),
|
|
|
|
get_last = dofile(wea.modpath.."/utils/tables/table_get_last.lua"),
|
|
|
|
makeset = dofile(wea.modpath.."/utils/tables/makeset.lua"),
|
|
|
|
map = dofile(wea.modpath.."/utils/tables/table_map.lua"),
|
|
|
|
shallowcopy = dofile(wea.modpath.."/utils/tables/shallowcopy.lua"),
|
|
|
|
tostring = dofile(wea.modpath.."/utils/tables/table_tostring.lua"),
|
|
|
|
unique = dofile(wea.modpath.."/utils/tables/table_unique.lua"),
|
|
|
|
unpack = dofile(wea.modpath.."/utils/tables/table_unpack.lua"),
|
|
|
|
}
|