summaryrefslogtreecommitdiff
path: root/common/words.lua
blob: 4d6904e7ecc7e250f5a23c7fda0146b05be719bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local function join(...)
	return table.concat({...}," ")
end

local function split(s)
	local o = {}
	for w in string.gmatch(s,"(%S+)") do
		table.insert(o,w)
	end
	return o
end

return {
	join=join,
	split=split,
}