<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ARepeat_symbols</id>
	<title>Module:Repeat symbols - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ARepeat_symbols"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Repeat_symbols&amp;action=history"/>
	<updated>2026-08-10T05:16:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Repeat_symbols&amp;diff=144639&amp;oldid=prev</id>
		<title>imported&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Repeat_symbols&amp;diff=144639&amp;oldid=prev"/>
		<updated>2022-10-21T06:39:29Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/research/Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local n = tonumber(frame.args.n)&lt;br /&gt;
	assert(n, &amp;#039;You must provide a number for n&amp;#039;)&lt;br /&gt;
	assert(n == math.floor(n), &amp;#039;n must be an integer&amp;#039;)&lt;br /&gt;
	local base = tonumber(frame.args.base or 10)&lt;br /&gt;
	assert(base, &amp;#039;You must provide a number for base&amp;#039;)&lt;br /&gt;
	assert(base == math.floor(base), &amp;#039;base must be an integer&amp;#039;)&lt;br /&gt;
	local digits, counts, outputs = {}, {}, {}&lt;br /&gt;
	for k,v in ipairs(frame.args) do&lt;br /&gt;
		digits[k] = v&lt;br /&gt;
		counts[k] = n % base&lt;br /&gt;
		n = (n - counts[k]) / base&lt;br /&gt;
	end&lt;br /&gt;
	counts[#counts] = counts[#counts] + n * base&lt;br /&gt;
	local tail = #digits + 1&lt;br /&gt;
	for k,v in ipairs(digits) do&lt;br /&gt;
		outputs[k] = v:rep(counts[tail - k])&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(outputs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>