<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Subroutine</id>
	<title>Subroutine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Subroutine"/>
	<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Subroutine&amp;action=history"/>
	<updated>2026-05-19T02:45:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://coderwiki.org/index.php?title=Subroutine&amp;diff=142&amp;oldid=prev</id>
		<title>31.126.87.241: replace link to Return with Function return</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Subroutine&amp;diff=142&amp;oldid=prev"/>
		<updated>2025-08-15T21:36:08Z</updated>

		<summary type="html">&lt;p&gt;replace link to Return with Function return&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:36, 15 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Types of subroutines ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Types of subroutines ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Function]] - a subroutine which &#039;&#039;&#039;does&#039;&#039;&#039; [[return]] a [[value]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Function]] - a subroutine which &#039;&#039;&#039;does&#039;&#039;&#039; [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Function return|&lt;/ins&gt;return]] a [[value]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Procedure]] - a subroutine which &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; [[Function return|return]] a [[value]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Procedure]] - a subroutine which &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; [[Function return|return]] a [[value]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>31.126.87.241</name></author>
	</entry>
	<entry>
		<id>http://coderwiki.org/index.php?title=Subroutine&amp;diff=110&amp;oldid=prev</id>
		<title>Dylan: new: info, parameters, types</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Subroutine&amp;diff=110&amp;oldid=prev"/>
		<updated>2025-08-15T09:14:18Z</updated>

		<summary type="html">&lt;p&gt;new: info, parameters, types&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;subroutine&amp;#039;&amp;#039;&amp;#039; is a [[code block]] in a separate part of the [[source code]].&lt;br /&gt;
&lt;br /&gt;
This [[code block]] can be &amp;#039;&amp;#039;&amp;#039;called&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;invoked&amp;#039;, and calling the subroutine will run the code in the code block.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
Subroutines can take in [[Parameter|parameters]]. These parameters give the subroutine more information about how to run and what [[Value|values]] to act upon.&lt;br /&gt;
&lt;br /&gt;
For example, a [[function]] &amp;lt;code&amp;gt;addOne&amp;lt;/code&amp;gt; which simply returns the [[integer]] one above the [[value]] of the [[parameter]] we pass in, could take in an [[integer]] called &amp;lt;code&amp;gt;num&amp;lt;/code&amp;gt; as a &amp;#039;&amp;#039;&amp;#039;parameter&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Types of subroutines ==&lt;br /&gt;
&lt;br /&gt;
* [[Function]] - a subroutine which &amp;#039;&amp;#039;&amp;#039;does&amp;#039;&amp;#039;&amp;#039; [[return]] a [[value]].&lt;br /&gt;
* [[Procedure]] - a subroutine which &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; [[Function return|return]] a [[value]].&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>