<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2Fextend</id>
	<title>Module:table/extend - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2Fextend"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/extend&amp;action=history"/>
	<updated>2026-04-05T23:01:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:table/extend&amp;diff=476948&amp;oldid=prev</id>
		<title>Sware: Created page with &quot;local insert = table.insert 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, ...) 	local i = 0 	if select(&quot;#&quot;, ...) &lt; 2 then 		local list = ... 		while true do 			i = i + 1 			local v = list[i] 			if v == nil then 				return t 			end 			insert(t, v) 		end 	else 		local pos, list = ... 		while true do 			i = i + 1 			local v = list[i]...&quot;</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/extend&amp;diff=476948&amp;oldid=prev"/>
		<updated>2025-11-11T12:35:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local insert = table.insert 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, ...) 	local i = 0 	if select(&amp;quot;#&amp;quot;, ...) &amp;lt; 2 then 		local list = ... 		while true do 			i = i + 1 			local v = list[i] 			if v == nil then 				return t 			end 			insert(t, v) 		end 	else 		local pos, list = ... 		while true do 			i = i + 1 			local v = list[i]...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local insert = table.insert&lt;br /&gt;
local select = select&lt;br /&gt;
&lt;br /&gt;
--[==[&lt;br /&gt;
Extend an existing list by a new list, modifying the existing list in-place. Compare the Python expression {list.extend(new_items)}.]==]&lt;br /&gt;
return function(t, ...)&lt;br /&gt;
	local i = 0&lt;br /&gt;
	if select(&amp;quot;#&amp;quot;, ...) &amp;lt; 2 then&lt;br /&gt;
		local list = ...&lt;br /&gt;
		while true do&lt;br /&gt;
			i = i + 1&lt;br /&gt;
			local v = list[i]&lt;br /&gt;
			if v == nil then&lt;br /&gt;
				return t&lt;br /&gt;
			end&lt;br /&gt;
			insert(t, v)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		local pos, list = ...&lt;br /&gt;
		while true do&lt;br /&gt;
			i = i + 1&lt;br /&gt;
			local v = list[i]&lt;br /&gt;
			if v == nil then&lt;br /&gt;
				return t&lt;br /&gt;
			end&lt;br /&gt;
			insert(t, pos, v)&lt;br /&gt;
			pos = pos + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
</feed>