今天是2025年12月18日 第51周 星期四

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

更改

跳到导航 跳到搜索
添加369字节 、 2020年2月26日 (三) 08:40
per EP
第472行: 第472行:  
end
 
end
 
return result;
 
return result;
 +
end
 +
 +
--[[
 +
join
 +
 +
Join all non empty arguments together; the first argument is the separator.
 +
Usage:
 +
{{#invoke:String|join|sep|one|two|three}}
 +
]]
 +
function str.join(frame)
 +
local args = {}
 +
local sep
 +
for _, v in ipairs( frame.args ) do
 +
if sep then
 +
if v ~= '' then
 +
table.insert(args, v)
 +
end
 +
else
 +
sep = v
 +
end
 +
end
 +
return table.concat( args, sep or '' )
 
end
 
end
  
匿名用户

导航菜单