<snapdata remixID="9387503"><project name="U8 Recursion Reporters Skeleton" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAA1tJREFUeAHt1zEyJGAUhdEfUwQEApnMNmQCgcBShAhsxBYFFqAKozo1zMyrO3WpOR3qfu+14yvN1uvbY3kQKAlsl+46S2AjIEAhVAUEWOV3XIAaqAoIsMrvuAA1UBUQYJXfcQFqoCogwCq/4wLUQFVAgFV+xwWogaqAAKv8jgtQA1UBAVb5HRegBqoCAqzyOy5ADVQFBFjld1yAGqgKCLDK77gANVAVEGCV33EBaqAqIMAqv+MC1EBVQIBVfscFqIGqgACr/I4LUANVAQFW+R0XoAaqAgKs8jsuQA1UBQRY5XdcgBqoCgiwyu+4ADVQFRBgld9xAWqgKiDAKr/jAtRAVUCAVX7HBaiBqoAAq/yOC1ADVQEBVvkdF6AGqgICrPI7LkANVAUEWOV3XIAaqAoIsMrvuAA1UBUQYJXfcQFqoCrwo3r9Cx+/vr5eBwcH6+rqah0eHn7hd/q939rW69vje38L/+7dX1xcrL29vc2Bh4eHdXt7u87Oztb+/v6/O/qfbRbgb37gl5eXa2dn592rHh8f1/39/To5OVm7u7vvnveFPxPwN+AnTs/Pz+tXHxDb29ubj+WjoyPxfeL3J0/5DfiJ0vn5+ebj9uXlZT09Pa27u7t1enr6yYSn/lZAgB+I3dzcrOPj480/IR+8xJcDAgIMIFoxF/A34NzOZEBAgAFEK+YCApzbmQwICDCAaMVcQIBzO5MBAQEGEK2YCwhwbmcyICDAAKIVcwEBzu1MBgQEGEC0Yi4gwLmdyYCAAAOIVswFBDi3MxkQEGAA0Yq5gADndiYDAgIMIFoxFxDg3M5kQECAAUQr5gICnNuZDAgIMIBoxVxAgHM7kwEBAQYQrZgLCHBuZzIgIMAAohVzAQHO7UwGBAQYQLRiLiDAuZ3JgIAAA4hWzAUEOLczGRAQYADRirmAAOd2JgMCAgwgWjEXEODczmRAQIABRCvmAgKc25kMCAgwgGjFXECAczuTAQEBBhCtmAsIcG5nMiAgwACiFXMBAc7tTAYEBBhAtGIuIMC5ncmAgAADiFbMBQQ4tzMZEBBgANGKuYAA53YmAwICDCBaMRcQ4NzOZEBAgAFEK+YCApzbmQwICDCAaMVcQIBzO5MBAQEGEK2YCwhwbmcyICDAAKIVc4Gf3pA6TfixLuYAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMG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DBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/gABHhb3AgAAAABJRU5ErkJggg==</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="0.4531722054380225" y="0.09063444108764429" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="19" y="17"><block s="receiveGo"></block><block s="doSetVar"><l>sorted list</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>unsorted list</l><block s="reportNewList"><list><l>C</l><l>B</l><l>D</l><l>A</l><l>F</l></list></block></block><block s="doSayFor"><custom-block s="selection sort %l"><block var="unsorted list"/></custom-block><l>2</l><comment w="90" collapsed="false">review Selection Sort for help; no code needed</comment></block></script><script x="24.666666666666686" y="326.66666666666663"><block s="receiveKey"><l><option>b</option></l></block><block s="doSetVar"><l>sorted list</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>unsorted list</l><block s="reportNewList"><list><l>C</l><l>B</l><l>D</l><l>A</l><l>F</l></list></block></block><block s="doSayFor"><custom-block s="bubble sort %l"><block var="unsorted list"/></custom-block><l>2</l></block></script><script x="23.333333333333343" y="171.66666666666669"><block s="receiveKey"><l><option>p</option></l></block><block s="doSetVar"><l>sorted list</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>unsorted list</l><block s="reportNewList"><list><l>C</l><l>B</l><l>D</l><l>A</l><l>F</l></list></block></block><block s="doSayFor"><custom-block s="partition sort %l"><block var="unsorted list"/></custom-block><l>2</l><comment w="90" collapsed="false">Option 1: enter your code here for Partition Sort</comment></block></script><script x="228.33333333333337" y="540.3333333333335"><custom-block s="partition sort %l"><block s="reportNewList"><list><l>4</l><l>2</l><l>3</l></list></block></custom-block></script><comment x="310.66666666666674" y="410.66666666666663" w="90" collapsed="false">Option 2: enter your code here for Bubble Sort</comment><script x="14" y="582.3333333333333"><block s="reportListItem"><l>1</l><l/></block></script><script x="481" y="462"><block var="pivot"/></script></scripts></sprite><watcher var="sorted list" style="normal" x="6.895833333333371" y="6.895833333333336" color="243,118,29" extX="80" extY="70.00000000000001" hidden="true"/><watcher var="unsorted list" style="normal" x="6.895833333333371" y="108.95416804583334" color="243,118,29" hidden="true"/><watcher var="pivot" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="after" style="normal" x="10" y="52.00000399999999" color="243,118,29" extX="80" extY="70" hidden="true"/><watcher var="test" style="normal" x="10" y="73.00000599999998" color="243,118,29" extX="80" extY="70" hidden="true"/><watcher var="before" style="normal" x="8" y="206.000002" color="243,118,29" extX="80" extY="70" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="selection sort %&apos;unsorted&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doIfElse"><block s="reportOr"><block s="reportListIsEmpty"><block var="unsorted"/></block><block s="reportEquals"><block s="reportListLength"><block var="unsorted"/></block><l>1</l></block></block><script><block s="doAddToList"><block s="reportListItem"><l>1</l><block var="unsorted"/></block><block var="sorted list"/></block><block s="doReport"><block var="sorted list"/></block></script><script><block s="doAddToList"><block s="reportListItem"><custom-block s="earliest in %l"><block var="unsorted"/></custom-block><block var="unsorted"/></block><block var="sorted list"/></block><block s="doDeleteFromList"><custom-block s="earliest in %l"><block var="unsorted"/></custom-block><block var="unsorted"/></block><block s="doReport"><custom-block s="selection sort %l"><block var="unsorted"/></custom-block></block></script></block></script></block-definition><block-definition s="earliest in %&apos;unsorted&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>count</l><l>earliest</l></list></block><block s="doSetVar"><l>count</l><l>1</l></block><block s="doSetVar"><l>earliest</l><block s="reportListItem"><l>1</l><block var="unsorted"/></block></block><block s="doFor"><l>i</l><l>2</l><block s="reportListLength"><block var="unsorted"/></block><script><block s="doIf"><block s="reportLessThan"><block s="reportListItem"><block var="i"/><block var="unsorted"/></block><block var="earliest"/></block><script><block s="doSetVar"><l>count</l><block var="i"/></block><block s="doSetVar"><l>earliest</l><block s="reportListItem"><block var="i"/><block var="unsorted"/></block></block></script></block></script></block><block s="doReport"><block var="count"/></block></script></block-definition><block-definition s="append %&apos;lists&apos;" type="reporter" category="lists"><comment w="287" collapsed="false">Take any number of input lists, and create a new list containing the items of the input lists.  So&#xD;              APPEND [A B] [C D]&#xD;where the [,,,] are lists reports the list&#xD;              [A B C D]&#xD;not [[A B] [C D]].</comment><header></header><code></code><translations></translations><inputs><input type="%mult%l"></input></inputs><script><block s="doWarp"><script><block s="doIf"><block s="reportEquals"><block var="lists"/><block s="reportNewList"><list></list></block></block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportListLength"><block var="lists"/></block><l>1</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block var="lists"/></block></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportListItem"><l>1</l><block var="lists"/></block><block s="reportNewList"><list></list></block></block><script><block s="doReport"><custom-block s="append %mult%l"><block s="reportCDR"><block var="lists"/></block></custom-block></block></script></block><block s="doReport"><block s="reportCONS"><block s="reportListItem"><l>1</l><block s="reportListItem"><l>1</l><block var="lists"/></block></block><custom-block s="append %mult%l"><block s="reportCONS"><block s="reportCDR"><block s="reportListItem"><l>1</l><block var="lists"/></block></block><block s="reportCDR"><block var="lists"/></block></block></custom-block></block></block></script></block></script></block-definition><block-definition s="bubble sort %&apos;unsorted&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doIfElse"><l/><script></script><script></script></block><block s="doReport"><l></l></block></script></block-definition><block-definition s="partition sort %&apos;unsorted&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>a</l><l>b</l><l>c</l></list></block><block s="doSetVar"><l>c</l><block s="reportListItem"><l>1</l><block var="unsorted"/></block></block><block s="doSetVar"><l>a</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>b</l><block s="reportNewList"><list></list></block></block><block s="doIfElse"><block s="reportOr"><block s="reportEquals"><block var="unsorted"/><block s="reportNewList"><list></list></block></block><block s="reportEquals"><block s="reportListLength"><block var="unsorted"/></block><l>1</l></block></block><script><block s="doReport"><block var="unsorted"/></block></script><script><block s="doForEach"><l>item</l><block var="unsorted"/><script><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="item"/><block var="c"/></block></block><script><block s="doIfElse"><block s="reportLessThan"><block var="item"/><block var="c"/></block><script><block s="doAddToList"><block var="item"/><block var="a"/></block></script><script><block s="doAddToList"><block var="item"/><block var="b"/></block></script></block></script></block></script></block><block s="doReport"><custom-block s="append %mult%l"><list><custom-block s="partition sort %l"><block var="a"/></custom-block><block s="reportNewList"><list><block var="c"/></list></block><custom-block s="partition sort %l"><block var="b"/></custom-block></list></custom-block></block></script></block></script><scripts><script x="187.0849649375" y="244.83333733333342"><block var="before"/></script><script x="267.333988375" y="220.8333393333333"><block var="before"/></script><script x="309.333988375" y="261.8333393333334"><block var="after"/></script><script x="252.9834004375" y="58.00000199999994"><block var="b"/></script><script x="202.000003" y="327.5000039999997"><custom-block s="partition sort %l"><l/></custom-block></script></scripts></block-definition></blocks><variables><variable name="sorted list"><list struct="atomic" id="373">A,B,C,D,F</list></variable><variable name="unsorted list"><list struct="atomic" id="374">F</list></variable><variable name="pivot"><l></l></variable><variable name="before"><list struct="atomic" id="375"></list></variable><variable name="after"><list struct="atomic" id="376"></list></variable><variable name="test"><list id="377"><item><l>1</l></item><item><l>2</l></item><item><list struct="atomic" id="378">3</list></item></list></variable></variables></project><media name="U8 Recursion Reporters Skeleton" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>