Sha256: 3a6c570a99b83edc40c8d935171af07838a74be27a89f3aae73669cc4f280ac8
Contents?: true
Size: 395 Bytes
Versions: 396
Compression:
Stored size: 395 Bytes
Contents
local function append(destination, to_append) for _, v in ipairs(to_append) do table.insert(destination, v) end end local function flatten(input) local flattened = {} for _, element in ipairs(input) do if type(element) == 'table' then append(flattened, flatten(element)) else table.insert(flattened, element) end end return flattened end return flatten
Version data entries
396 entries across 396 versions & 1 rubygems