<?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=Iterate</id>
	<title>Iterate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mojopuzzler.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Iterate"/>
	<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Iterate&amp;action=history"/>
	<updated>2026-05-06T01:36:40Z</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=Iterate&amp;diff=2260&amp;oldid=prev</id>
		<title>Gneale: Created page with &quot;===== Return to: Chialisp ===== ===== Return to: Recursive Functions ===== ==Example 1==  (mod (n)  (defun iterate (n)   (if (= n 0)       n     (list n (iterate (- n 1)))     )   )  (iterate n)  )  ==Example 1 usage:==  brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (= 5 ()) (q . 5) (q 4 5 (c (a 2 (c 2 (c (- 5 (q . 1)) ()))) ()))) 1) 1))' '(50)'  (50 (49 (48 (47 (46 (45 (44 (43 (42 (41 (40 (39 (38 (37 (softfork (35 (all (any (not (31 (pubkey_for_exp (point_...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Iterate&amp;diff=2260&amp;oldid=prev"/>
		<updated>2023-11-17T15:52:17Z</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; ===== ==Example 1==  (mod (n)  (defun iterate (n)   (if (= n 0)       n     (list n (iterate (- n 1)))     )   )  (iterate n)  )  ==Example 1 usage:==  brun &amp;#039;(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (= 5 ()) (q . 5) (q 4 5 (c (a 2 (c 2 (c (- 5 (q . 1)) ()))) ()))) 1) 1))&amp;#039; &amp;#039;(50)&amp;#039;  (50 (49 (48 (47 (46 (45 (44 (43 (42 (41 (40 (39 (38 (37 (softfork (35 (all (any (not (31 (pubkey_for_exp (point_...&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;
==Example 1==&lt;br /&gt;
 (mod (n)&lt;br /&gt;
 (defun iterate (n)&lt;br /&gt;
  (if (= n 0)&lt;br /&gt;
      n&lt;br /&gt;
    (list n (iterate (- n 1)))&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
 (iterate n)&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
==Example 1 usage:==&lt;br /&gt;
 brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (= 5 ()) (q . 5) (q 4 5 (c (a 2 (c 2 (c (- 5 (q . 1)) ()))) ()))) 1) 1))' '(50)'&lt;br /&gt;
&lt;br /&gt;
(50 (49 (48 (47 (46 (45 (44 (43 (42 (41 (40 (39 (38 (37 (softfork (35 (all (any (not (31 (pubkey_for_exp (point_add (28 (lognot (logxor (logior (logand (lsh (ash (&amp;gt; (divmod (/ (* (- (+ (15 (concat (strlen (substr &lt;br /&gt;
(sha256 (&amp;gt;s (= (x (l (r (f (c (i (a (q ())))))))))))))))))))))))))))))))))))))))))))))))))&lt;br /&gt;
&lt;br /&gt;
==Example 2==&lt;br /&gt;
&lt;br /&gt;
 (mod (index)&lt;br /&gt;
   (defun iterate (index)&lt;br /&gt;
       (if (= index 0)&lt;br /&gt;
       (1)&lt;br /&gt;
       (list (list 51 0xdeadbeef index) (iterate (- index 1)))&lt;br /&gt;
        )&lt;br /&gt;
    )&lt;br /&gt;
 (iterate index)&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
==Example 2 usage:==&lt;br /&gt;
 brun '(a (q 2 2 (c 2 (c 5 ()))) (c (q 2 (i (= 5 ()) () (q 4 (c (q . 51) (c (q . 0xdeadbeef) (c 5 ()))) (c (a 2 (c 2 (c (- 5 (q . 1)) ()))) ()))) 1) 1))' '(10)'&lt;br /&gt;
&lt;br /&gt;
((51 0xdeadbeef 10) ((51 0xdeadbeef 9) ((51 0xdeadbeef 8) ((51 0xdeadbeef 7) ((51 0xdeadbeef 6) ((51 0xdeadbeef 5) ((51 0xdeadbeef 4) ((51 0xdeadbeef 3) ((51 0xdeadbeef 2) ((51 0xdeadbeef 1) ()))))))))))&lt;/div&gt;</summary>
		<author><name>Gneale</name></author>
	</entry>
</feed>