Jump to content

Module talk:table/flatten

Page contents not supported in other languages.
මාතෘකාවක් එක්කරන්න
Wiktionary වෙතින්
oldiddate/timeusernameedit summary
848006122025-05-14T15:51:17ZTheknightwho
848004722025-05-14T15:08:35ZTheknightwhoProtected "[[Module:table/flatten]]": Highly visible template/module ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
848004712025-05-14T15:08:26ZTheknightwhoCreated page with "local error = error local insert = table.insert local ipairs = ipairs local type = type local function flatten(t, list, n, current) current[t] = true for i, v in ipairs(t) do if type(v) ~= "table" then n = n + 1 list[n] = v elseif current[v] then error("loop in input list") else n = flatten(v, list, n, current) end end current[t] = nil return n end --[==[ Given a list, which may contain sublists, flatten it into a single list. For example, {fla..."

Start a discussion about Module:table/flatten

Start a discussion
"https://si.wiktionary.org/w/index.php?title=Module_talk:table/flatten&oldid=221463" වෙතින් සම්ප්‍රවේශනය කෙරිණි