Module:ListUtils
Jump to navigation
Jump to search
Documentation for this module may be created at Module:ListUtils/doc
-- Module:<ModuleName>
local p = {} -- Table to hold the module's functions
function splitString(input, delimiter)
local r = {}
for match in (input .. delimiter):gmatch("(.-)" .. delimiter) do
table.insert(r, match)
end
return r
end
function p.GetFirstItem(frame)
local l = splitString(frame.args[1], frame.args[2])
return l[1]
end
return p -- Return the table to make functions accessible