יחידה:String: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
IKhitron (שיחה | תרומות)
אין תקציר עריכה
ערן (שיחה | תרומות)
מאין תקציר עריכה
שורה 521:
if not repval then return '' end
return string.rep( strval, repval )
end
 
str.join = function(frame)
local res = {}
local sep = ', '
for k,v in pairs(frame.args) do
if k=='sep' then
sep = v
else
table.insert(res, v)
end
end
return table.concat( res, sep)
end