Jump to content

Module talk:table/extend

Page contents not supported in other languages.
මාතෘකාවක් එක්කරන්න
Wiktionary වෙතින්
oldiddate/timeusernameedit summary
848006042025-05-14T15:48:45ZTheknightwho
847939232025-05-13T18:41:45ZTheknightwhoProtected "[[Module:table/extend]]": Highly visible template/module ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
847939212025-05-13T18:41:36ZTheknightwhoCreated page with "local insert = table.insert local ipairs = ipairs local select = select --[==[ Extend an existing list by a new list, modifying the existing list in-place. Compare the Python expression {list.extend(new_items)}.]==] return function(t, ...) if select("#", ...) < 2 then for _, v in ipairs((...)) do insert(t, v) end else local pos, list = ... for _, v in ipairs(list) do insert(t, pos, v) pos = pos + 1 end end end"

Start a discussion about Module:table/extend

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