Modul:RPL
Utseende
local rpl = {}
function rpl._max( ... )
local ind,val = nil,nil
for i,v in ipairs( {...} ) do
if not val then
val = v
end
if not ind then
ind = i
end
if v > val then
ind = i
val = v
end
end
return ind
end
function rpl.max( frame )
local t = {}
for i,v in ipairs( frame.args ) do
t[i] = tonumber( v )
end
return tostring( rpl._max( unpack( t ) ) )
end
return rpl