Module:Sandbox/isaacl/ColourSpace/Tuple

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Isaacl at 00:39, 3 March 2013. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
local me = { }

function me.display(tuple, separator)
    if ( separator == nil ) then
        separator = ', '
    end
    return table.concat(tuple, separator)
end

function me.clone(tuple)
    local newTuple = { }

    for idx, value in ipairs(tuple) do
        newTuple[idx] = value
    end
    return newTuple
end

return me