<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mojopuzzler.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Length</id>
	<title>Length - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mojopuzzler.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Length"/>
	<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Length&amp;action=history"/>
	<updated>2026-06-06T03:40:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://mojopuzzler.org/mediawiki/index.php?title=Length&amp;diff=2261&amp;oldid=prev</id>
		<title>Gneale: Created page with &quot;===== Return to: Chialisp ===== ===== Return to: Recursive Functions =====   (mod (lst)      (defun length (lst)        (if (l lst)            (+ 1 (length (r lst)))          lst)        )      (length lst)      )  ==Usage Example 1:==  brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13 ())))) (q . 5)) 1) 1))' '((10 20))'    2 ==Usage Example 2:==  brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Length&amp;diff=2261&amp;oldid=prev"/>
		<updated>2023-11-17T15:52:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===== Return to: &lt;a href=&quot;/mediawiki/index.php/Chialisp&quot; title=&quot;Chialisp&quot;&gt;Chialisp&lt;/a&gt; ===== ===== Return to: &lt;a href=&quot;/mediawiki/index.php/Recursive_Functions&quot; title=&quot;Recursive Functions&quot;&gt;Recursive Functions&lt;/a&gt; =====   (mod (lst)      (defun length (lst)        (if (l lst)            (+ 1 (length (r lst)))          lst)        )      (length lst)      )  ==Usage Example 1:==  brun &amp;#039;(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13 ())))) (q . 5)) 1) 1))&amp;#039; &amp;#039;((10 20))&amp;#039;    2 ==Usage Example 2:==  brun &amp;#039;(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Return to: [[Chialisp|Chialisp]] =====&lt;br /&gt;
===== Return to: [[Recursive Functions]] =====&lt;br /&gt;
&lt;br /&gt;
 (mod (lst)&lt;br /&gt;
     (defun length (lst)&lt;br /&gt;
       (if (l lst)&lt;br /&gt;
           (+ 1 (length (r lst)))&lt;br /&gt;
         lst)&lt;br /&gt;
       )&lt;br /&gt;
     (length lst)&lt;br /&gt;
     )&lt;br /&gt;
&lt;br /&gt;
==Usage Example 1:==&lt;br /&gt;
 brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13 ())))) (q . 5)) 1) 1))' '((10 20))'&lt;br /&gt;
 &lt;br /&gt;
 2&lt;br /&gt;
==Usage Example 2:==&lt;br /&gt;
 brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (l 5) (q 16 (q . 1) (a 2 (c 2 (c 13 ())))) (q . 5)) 1) 1))' '((10 20 30))'&lt;br /&gt;
 &lt;br /&gt;
 3&lt;/div&gt;</summary>
		<author><name>Gneale</name></author>
	</entry>
</feed>