Module talk:table/flatten
මාතෘකාවක් එක්කරන්නපෙනුම
| oldid | date/time | username | edit summary |
|---|---|---|---|
| 84800612 | 2025-05-14T15:51:17Z | Theknightwho | |
| 84800472 | 2025-05-14T15:08:35Z | Theknightwho | Protected "[[Module:table/flatten]]": Highly visible template/module ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
| 84800471 | 2025-05-14T15:08:26Z | Theknightwho | Created 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
Talk pages are where people discuss how to make content on Wiktionary the best that it can be. You can use this page to start a discussion with others about how to improve Module:table/flatten.