aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/LSL.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LSL.lua')
-rw-r--r--lib/LSL.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index 4ec64b5..e783087 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -986,7 +986,7 @@ end
986 986
987-- Misc support functions. 987-- Misc support functions.
988 988
989function LSL.listAddList(a, b) 989function LSL.listAdd(a, b)
990 local i = 1 990 local i = 1
991 local result = {} 991 local result = {}
992 992
@@ -1007,20 +1007,6 @@ function LSL.listAddList(a, b)
1007 return result; 1007 return result;
1008end 1008end
1009 1009
1010function LSL.listAdd(a, b)
1011 local i = 1
1012 local result = {}
1013
1014 for j, v in ipairs(a) do
1015 i = i + 1
1016 table.insert(result, i, v)
1017 end
1018
1019 table.insert(result, i, b)
1020
1021 return result;
1022end
1023
1024function LSL.listConcat(a, b) 1010function LSL.listConcat(a, b)
1025 local i = table.maxn(a) 1011 local i = table.maxn(a)
1026 local result = a 1012 local result = a