From 6e82666c0a943133268d22604f1e79c0863f74a6 Mon Sep 17 00:00:00 2001 From: jwilliamson1 Date: Sat, 30 Dec 2017 11:43:00 -0500 Subject: [PATCH 1/3] finished --- interval-arithmetic.rkt | 438 +++++++++++++++++++++++++++++++++++----- 1 file changed, 391 insertions(+), 47 deletions(-) diff --git a/interval-arithmetic.rkt b/interval-arithmetic.rkt index 6e6ef9d..6ba1b21 100644 --- a/interval-arithmetic.rkt +++ b/interval-arithmetic.rkt @@ -1,7 +1,7 @@ #reader(lib"read.ss""wxme")WXME0108 ## #| This file uses the GRacket editor format. - Open this file in DrRacket version 6.6 or later to read it. + Open this file in DrRacket version 6.5 or later to read it. Most likely, it was created by saving a program in DrRacket, and it probably contains a program with non-text elements @@ -14,12 +14,7 @@ 1 1 8 #"wximage\0" 2 0 8 #"wxmedia\0" 4 1 34 #"(lib \"syntax-browser.ss\" \"mrlib\")\0" -1 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0" -1 0 68 -( - #"((lib \"image-core.ss\" \"mrlib\") (lib \"image-core-wxme.rkt\" \"mr" - #"lib\"))\0" -) 1 0 16 #"drscheme:number\0" +1 0 16 #"drscheme:number\0" 3 0 44 #"(lib \"number-snip.ss\" \"drscheme\" \"private\")\0" 1 0 36 #"(lib \"comment-snip.ss\" \"framework\")\0" 1 0 93 @@ -28,7 +23,12 @@ #"pclass-wxme.ss\" \"framework\"))\0" ) 0 0 43 #"(lib \"collapsed-snipclass.ss\" \"framework\")\0" 0 0 19 #"drscheme:sexp-snip\0" -0 0 29 #"drscheme:bindings-snipclass%\0" +0 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0" +1 0 68 +( + #"((lib \"image-core.ss\" \"mrlib\") (lib \"image-core-wxme.rkt\" \"mr" + #"lib\"))\0" +) 1 0 29 #"drscheme:bindings-snipclass%\0" 1 0 101 ( #"((lib \"ellipsis-snip.rkt\" \"drracket\" \"private\") (lib \"ellipsi" @@ -55,12 +55,12 @@ 1 0 10 #"text-box%\0" 1 0 32 #"(lib \"text-snipclass.ss\" \"xml\")\0" 1 0 1 6 #"wxloc\0" - 0 0 65 0 1 #"\0" + 0 0 68 0 1 #"\0" 0 75 1 #"\0" 0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 0 9 #"Standard\0" -0 75 17 #"DejaVu Sans Mono\0" -0 11 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1 +0 75 12 #"Courier New\0" +0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1 #"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 2 24 @@ -93,23 +93,23 @@ 1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 34 139 34 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 192 192 192 0 0 0 -1 -1 2 37 #"framework:syntax-color:scheme:symbol\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 192 192 192 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 128 0 0 0 0 -1 -1 2 38 -#"framework:syntax-color:scheme:keyword\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 102 102 255 0 0 0 -1 -1 2 +38 #"framework:syntax-color:scheme:keyword\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 128 0 0 0 0 -1 -1 2 1 -#"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 102 102 255 0 0 0 -1 -1 2 +1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 131 131 131 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 249 148 40 0 0 0 -1 -1 2 38 #"framework:syntax-color:scheme:comment\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 131 131 131 0 0 0 -1 -1 2 -1 #"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 249 148 40 0 0 0 -1 -1 2 1 +#"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 51 174 51 0 0 0 -1 -1 2 37 #"framework:syntax-color:scheme:string\0" @@ -138,8 +138,11 @@ 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36 #"framework:syntax-color:scheme:error\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36 -#"framework:syntax-color:scheme:other\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +36 #"framework:syntax-color:scheme:other\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 16 #"Misspelled Text\0" @@ -187,12 +190,9 @@ 49 #"drracket:check-syntax:both-obligation-style-pref\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 240 230 140 0 0 0 -1 -1 2 -1 #"\0" -0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 26 #"plt:htdp:test-coverage-on\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 1 0 0 0 0 0 0 205 92 92 0 0 0 -1 -1 2 27 @@ -228,7 +228,16 @@ 1.0 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 57 89 216 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 128 0 0 +0 0 -1 -1 2 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 131 131 131 +0 0 0 -1 -1 2 1 #"\0" +0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 255 255 +0 0 0 -1 -1 2 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 255 255 0 0 0 -1 -1 4 1 #"\0" 0 71 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 @@ -247,7 +256,7 @@ 0 -1 -1 4 1 #"\0" 0 -1 1 #"\0" 1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 1 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 -255 0 -1 -1 0 1530 0 29 3 12 #"#lang racket" +255 0 -1 -1 0 1865 0 30 3 12 #"#lang racket" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" @@ -512,6 +521,27 @@ 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #" " +0 0 14 3 8 #"interval" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 2 #" (" +0 0 14 3 6 #"center" +0 0 26 3 1 #" " +0 0 14 3 8 #"interval" +0 0 26 3 2 #")(" +0 0 14 3 7 #"percent" +0 0 26 3 1 #" " +0 0 14 3 8 #"interval" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" 0 0 14 3 12 #"add-interval" 0 0 26 3 1 #" " 0 0 14 3 1 #"x" @@ -552,13 +582,11 @@ 0 0 26 29 1 #"\n" 0 0 18 3 2 #";(" 0 0 18 3 11 #"lower-bound" -0 0 18 3 1 #"(" -0 0 18 3 26 #"add-interval int-x int-y))" +0 0 18 3 27 #"(add-interval int-x int-y))" 0 0 26 29 1 #"\n" 0 0 18 3 2 #";(" 0 0 18 3 11 #"upper-bound" -0 0 18 3 1 #"(" -0 0 18 3 26 #"add-interval int-x int-y))" +0 0 18 3 27 #"(add-interval int-x int-y))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" @@ -1161,7 +1189,7 @@ 0 0 14 3 4 #"else" 0 0 26 29 1 #"\n" 0 0 26 3 6 #" (" -0 0 14 3 12 #"mul-interval" +0 0 14 3 16 #"old-mul-interval" 0 0 26 3 1 #" " 0 0 14 3 1 #"x" 0 0 26 3 4 #" " @@ -1292,7 +1320,7 @@ 0 0 26 3 4 #"))))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 103 4 0 0 0 16 0 26 3 1 #"(" +0 7 103 4 0 0 0 16 0 26 3 1 #"(" 0 0 14 3 12 #"sub-interval" 0 0 26 3 1 #" " 0 0 14 3 5 #"int-x" @@ -1359,7 +1387,7 @@ 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 121 4 0 0 0 19 0 26 3 1 #"(" +0 7 121 4 0 0 0 19 0 26 3 1 #"(" 0 0 14 3 7 #"display" 0 0 26 3 1 #" " 0 0 20 3 15 #"\"should be 9.5\"" @@ -1449,7 +1477,7 @@ 0 0 26 3 3 #")))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 481 4 0 0 0 79 0 26 3 1 #"(" +0 7 481 4 0 0 0 79 0 26 3 1 #"(" 0 0 14 3 13 #"sum-of-widths" 0 0 26 3 1 #" " 0 0 14 3 4 #"sum1" @@ -1771,7 +1799,7 @@ 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 865 4 0 0 0 143 0 26 3 1 #"(" +0 7 865 4 0 0 0 143 0 26 3 1 #"(" 0 0 14 3 16 #"old-mul-interval" 0 0 26 3 1 #" " 0 0 14 3 4 #"neg1" @@ -1919,27 +1947,103 @@ 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 1 #" " -0 0 14 3 4 #"int1" +0 0 14 3 4 #"intA" 0 0 26 3 2 #" (" -0 0 14 3 13 #"make-interval" +0 0 14 3 19 #"make-center-percent" 0 0 26 3 1 #" " 0 0 23 3 3 #"100" 0 0 26 3 1 #" " -0 0 23 3 1 #"5" +0 0 23 3 1 #"1" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 1 #" " -0 0 14 3 4 #"int2" +0 0 14 3 4 #"intB" 0 0 26 3 2 #" (" -0 0 14 3 13 #"make-interval" +0 0 14 3 19 #"make-center-percent" 0 0 26 3 1 #" " 0 0 23 3 3 #"100" 0 0 26 3 1 #" " -0 0 23 3 2 #"35" +0 0 23 3 1 #"2" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 5 #"intID" +0 0 26 3 2 #" (" +0 0 14 3 19 #"make-center-percent" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"0" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 12 #"\"Points ID \"" +0 0 26 3 1 #")" +0 0 14 3 5 #"intID" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 14 #"\"Points intA \"" +0 0 26 3 1 #")" +0 0 14 3 4 #"intA" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 14 #"\"Points intB \"" +0 0 26 3 1 #")" +0 0 14 3 4 #"intB" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 22 #"\"Center percent intA \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 22 #"\"Center percent intB \"" +0 0 26 3 3 #") (" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 22 #"\"Center percent intA \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #" " +0 0 14 3 5 #"intID" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 21 #"\"Identity mul works \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"mul-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #" " +0 0 14 3 5 #"intID" +0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" @@ -2017,20 +2121,260 @@ 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 5 #"\"par1" +0 0 20 3 1 #" " +0 0 20 3 8 #"on A A \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" 0 0 14 3 4 #"par1" 0 0 26 3 1 #" " -0 0 14 3 4 #"int1" +0 0 14 3 4 #"intA" 0 0 26 3 1 #" " -0 0 14 3 4 #"int2" -0 0 26 3 1 #")" +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 1 #"\"" +0 0 20 3 4 #"par2" +0 0 20 3 1 #" " +0 0 20 3 2 #"on" +0 0 20 3 1 #" " +0 0 20 3 1 #"A" +0 0 20 3 4 #" A \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" 0 0 14 3 4 #"par2" 0 0 26 3 1 #" " -0 0 14 3 4 #"int1" +0 0 14 3 4 #"intA" 0 0 26 3 1 #" " -0 0 14 3 4 #"int2" +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 5 #"\"par1" +0 0 20 3 1 #" " +0 0 20 3 4 #"on A" +0 0 20 3 4 #" B \"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 4 #"par1" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 1 #"\"" +0 0 20 3 4 #"par2" +0 0 20 3 1 #" " +0 0 20 3 2 #"on" +0 0 20 3 1 #" " +0 0 20 3 1 #"A" +0 0 20 3 1 #" " +0 0 20 3 2 #"B " +0 0 20 3 1 #"\"" +0 0 26 3 2 #")(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 4 #"par2" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 2 #" (" +0 0 14 3 13 #"make-interval" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 15 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" 0 0 26 3 1 #")" 0 0 26 29 1 #"\n" +0 0 26 3 30 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 2 #" (" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" 0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 34 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intB" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 15 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 30 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 14 #"center-percent" +0 0 26 3 1 #"(" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 2 #" (" +0 0 14 3 12 #"add-interval" +0 0 26 3 2 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 34 #" (" +0 0 14 3 12 #"div-interval" +0 0 26 3 1 #" " +0 0 14 3 4 #"ones" +0 0 26 3 1 #" " +0 0 14 3 4 #"intA" +0 0 26 3 4 #"))))" 0 0 From 46acda46c66419cc410f62a1f2bcf4fda37545ef Mon Sep 17 00:00:00 2001 From: jwilliamson1 Date: Sun, 31 Dec 2017 14:47:32 -0500 Subject: [PATCH 2/3] finished reverse, deep reverse, and fringe --- lists-sicp.rkt | 607 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 525 insertions(+), 82 deletions(-) diff --git a/lists-sicp.rkt b/lists-sicp.rkt index 6c607ab..98cabd3 100644 --- a/lists-sicp.rkt +++ b/lists-sicp.rkt @@ -1,7 +1,7 @@ #reader(lib"read.ss""wxme")WXME0108 ## #| This file uses the GRacket editor format. - Open this file in DrRacket version 6.6 or later to read it. + Open this file in DrRacket version 6.5 or later to read it. Most likely, it was created by saving a program in DrRacket, and it probably contains a program with non-text elements @@ -14,12 +14,7 @@ 1 1 8 #"wximage\0" 2 0 8 #"wxmedia\0" 4 1 34 #"(lib \"syntax-browser.ss\" \"mrlib\")\0" -1 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0" -1 0 68 -( - #"((lib \"image-core.ss\" \"mrlib\") (lib \"image-core-wxme.rkt\" \"mr" - #"lib\"))\0" -) 1 0 16 #"drscheme:number\0" +1 0 16 #"drscheme:number\0" 3 0 44 #"(lib \"number-snip.ss\" \"drscheme\" \"private\")\0" 1 0 36 #"(lib \"comment-snip.ss\" \"framework\")\0" 1 0 93 @@ -28,7 +23,12 @@ #"pclass-wxme.ss\" \"framework\"))\0" ) 0 0 43 #"(lib \"collapsed-snipclass.ss\" \"framework\")\0" 0 0 19 #"drscheme:sexp-snip\0" -0 0 29 #"drscheme:bindings-snipclass%\0" +0 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0" +1 0 68 +( + #"((lib \"image-core.ss\" \"mrlib\") (lib \"image-core-wxme.rkt\" \"mr" + #"lib\"))\0" +) 1 0 29 #"drscheme:bindings-snipclass%\0" 1 0 101 ( #"((lib \"ellipsis-snip.rkt\" \"drracket\" \"private\") (lib \"ellipsi" @@ -55,12 +55,12 @@ 1 0 10 #"text-box%\0" 1 0 32 #"(lib \"text-snipclass.ss\" \"xml\")\0" 1 0 1 6 #"wxloc\0" - 0 0 89 0 1 #"\0" + 0 0 93 0 1 #"\0" 0 75 1 #"\0" 0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 0 9 #"Standard\0" -0 75 17 #"DejaVu Sans Mono\0" -0 11 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1 +0 75 12 #"Courier New\0" +0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1 #"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 2 24 @@ -93,23 +93,23 @@ 1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 34 139 34 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 192 192 192 0 0 0 -1 -1 2 37 #"framework:syntax-color:scheme:symbol\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 192 192 192 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 128 0 0 0 0 -1 -1 2 38 -#"framework:syntax-color:scheme:keyword\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 102 102 255 0 0 0 -1 -1 2 +38 #"framework:syntax-color:scheme:keyword\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 128 0 0 0 0 -1 -1 2 1 -#"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 102 102 255 0 0 0 -1 -1 2 +1 #"\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 131 131 131 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 249 148 40 0 0 0 -1 -1 2 38 #"framework:syntax-color:scheme:comment\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 131 131 131 0 0 0 -1 -1 2 -1 #"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 249 148 40 0 0 0 -1 -1 2 1 +#"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 51 174 51 0 0 0 -1 -1 2 37 #"framework:syntax-color:scheme:string\0" @@ -138,8 +138,11 @@ 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36 #"framework:syntax-color:scheme:error\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36 -#"framework:syntax-color:scheme:other\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +36 #"framework:syntax-color:scheme:other\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 16 #"Misspelled Text\0" @@ -187,12 +190,9 @@ 49 #"drracket:check-syntax:both-obligation-style-pref\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 240 230 140 0 0 0 -1 -1 2 -1 #"\0" -0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 26 #"plt:htdp:test-coverage-on\0" 0 -1 1 #"\0" -1 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 +1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0 0 0 1 1 1 255 255 255 0 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 1 0 0 0 0 0 0 205 92 92 0 0 0 -1 -1 2 27 @@ -212,8 +212,8 @@ 0 -1 1 #"\0" 1 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 1 0 0 0 0 0 0 205 92 92 0 0 0 -1 -1 0 1 #"\0" -0 75 17 #"DejaVu Sans Mono\0" -0.0 11 90 -1 90 -1 3 -1 0 1 0 1 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 +0 75 12 #"Courier New\0" +0.0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 255 255 1 -1 2 1 #"\0" 0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 1 0.0 0.0 0.0 0.0 0.0 0.0 255 255 255 @@ -229,6 +229,18 @@ 0 0 -1 -1 2 1 #"\0" 0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 255 255 +0 0 0 -1 -1 0 1 #"\0" +0 75 17 #"DejaVu Sans Mono\0" +0.0 11 90 -1 90 -1 3 -1 0 1 0 1 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 +255 255 1 -1 2 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 128 0 0 +0 0 -1 -1 2 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 1 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 131 131 131 +0 0 0 -1 -1 2 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 93 -1 -1 0 0 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 255 255 255 0 0 0 -1 -1 4 1 #"\0" 0 71 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 @@ -254,7 +266,7 @@ #"macro-debugger/syntax-browser/properties color-text% basic\0" 0 70 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 --1 -1 66 1 #"\0" +-1 -1 70 1 #"\0" 0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0.0 0.0 0.0 1.0 1.0 1.0 190 190 190 0 0 0 -1 -1 4 1 #"\0" @@ -320,7 +332,7 @@ 30 3 0 -1 -1 4 1 #"\0" 0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 1 0.0 0.0 0.0 0.0 0.0 0.0 255 255 255 -0 31 31 -1 -1 0 1052 0 29 3 12 #"#lang racket" +0 31 31 -1 -1 0 1397 0 30 3 12 #"#lang racket" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" @@ -477,7 +489,7 @@ 0 0 26 29 1 #"\n" 0 0 23 3 1 #"4" 0 0 26 29 1 #"\n" -0 0 26 29 1 #"\n" +0 7 253 4 0 0 0 41 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" @@ -518,7 +530,7 @@ 0 0 26 3 20 #" " 0 0 14 3 5 #"list2" 0 0 26 3 4 #"))))" -0 0 26 29 1 #"\n" +0 0 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 14 3 6 #"append" @@ -633,80 +645,130 @@ 0 0 26 3 1 #")" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 409 4 0 0 0 67 0 26 3 1 #"(" +0 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" -0 0 14 3 7 #"reverse" +0 0 14 3 10 #"my-reverse" 0 0 26 3 1 #" " 0 0 14 3 4 #"list" 0 0 26 3 1 #")" 0 0 26 29 1 #"\n" 0 0 26 3 3 #" (" 0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 4 #"iter" +0 0 26 3 1 #" " +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 14 3 3 #"end" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" (" +0 0 16 3 4 #"cond" +0 0 26 29 1 #"\n" +0 0 26 3 8 #" [(" +0 0 14 3 5 #"null?" 0 0 26 3 1 #" " -0 0 14 3 3 #"len" +0 0 14 3 4 #"list" +0 0 26 3 2 #") " +0 0 14 3 3 #"end" +0 0 26 3 1 #"]" +0 0 26 29 1 #"\n" +0 0 26 3 7 #" [" +0 0 14 3 4 #"else" 0 0 26 3 2 #" (" -0 0 14 3 6 #"length" +0 0 14 3 4 #"iter" +0 0 26 3 2 #" (" +0 0 14 3 3 #"cdr" 0 0 26 3 1 #" " 0 0 14 3 4 #"list" -0 0 26 3 2 #"))" +0 0 26 3 3 #") (" +0 0 14 3 4 #"cons" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 4 #"list" +0 0 26 3 2 #") " +0 0 14 3 3 #"end" +0 0 26 3 5 #"))]))" 0 0 26 29 1 #"\n" 0 0 26 3 3 #" (" -0 0 16 3 6 #"define" -0 0 26 3 2 #" (" -0 0 14 3 11 #"reverse-rec" +0 0 14 3 4 #"iter" 0 0 26 3 1 #" " 0 0 14 3 4 #"list" 0 0 26 3 1 #" " -0 0 14 3 1 #"l" +0 0 23 3 1 #"'" +0 0 26 3 4 #"()))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 11 #"rec-reverse" +0 0 26 3 1 #" " +0 0 14 3 3 #"lat" 0 0 26 3 1 #")" 0 0 26 29 1 #"\n" -0 0 26 3 5 #" (" +0 0 26 3 3 #" (" 0 0 14 3 2 #"if" 0 0 26 3 1 #"(" -0 0 14 3 1 #"=" -0 0 26 3 1 #" " -0 0 14 3 1 #"l" +0 0 14 3 5 #"null?" 0 0 26 3 1 #" " -0 0 23 3 1 #"0" +0 0 14 3 3 #"lat" 0 0 26 3 1 #")" 0 0 26 29 1 #"\n" -0 0 26 3 7 #" " +0 0 26 3 5 #" " 0 0 23 3 1 #"'" 0 0 26 3 2 #"()" 0 0 26 29 1 #"\n" -0 0 26 3 8 #" (" -0 0 14 3 4 #"cons" +0 0 26 3 5 #" (" +0 0 14 3 6 #"append" 0 0 26 3 2 #" (" -0 0 14 3 8 #"list-ref" -0 0 26 3 1 #" " -0 0 14 3 1 #"l" -0 0 26 3 2 #")(" -0 0 14 3 11 #"reverse-rec" -0 0 26 3 1 #" " -0 0 14 3 4 #"list" +0 0 14 3 11 #"rec-reverse" 0 0 26 3 2 #" (" -0 0 14 3 1 #"-" +0 0 14 3 3 #"cdr" 0 0 26 3 1 #" " -0 0 14 3 1 #"l" +0 0 14 3 3 #"lat" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 17 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #"(" +0 0 14 3 3 #"car" 0 0 26 3 1 #" " -0 0 23 3 1 #"1" +0 0 14 3 3 #"lat" 0 0 26 3 5 #")))))" 0 0 26 29 1 #"\n" -0 0 26 3 2 #" " -0 0 14 3 11 #"reverse-rec" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 7 #"display" 0 0 26 3 1 #" " +0 0 20 3 18 #"\"my reverse list \"" +0 0 26 3 2 #")(" +0 0 14 3 10 #"my-reverse" +0 0 26 3 2 #" (" 0 0 14 3 4 #"list" 0 0 26 3 1 #" " -0 0 14 3 3 #"len" -0 0 26 3 1 #")" -0 0 0 0 26 29 1 #"\n" +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 1 #" " +0 0 23 3 1 #"9" +0 0 26 3 1 #" " +0 0 23 3 2 #"16" +0 0 26 3 1 #" " +0 0 23 3 2 #"25" +0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" -0 0 14 3 7 #"reverse" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 19 #"\"rec reverse list \"" +0 0 26 3 2 #")(" +0 0 14 3 11 #"rec-reverse" 0 0 26 3 2 #" (" 0 0 14 3 4 #"list" -0 0 26 3 1 #" " +0 0 26 3 2 #" " 0 0 23 3 1 #"1" 0 0 26 3 1 #" " 0 0 23 3 1 #"4" @@ -718,18 +780,58 @@ 0 0 23 3 2 #"25" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 4 #"cons" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 29 1 #"\n" +0 0 26 3 13 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 1 #" " 0 0 23 3 1 #"'" +0 0 26 3 4 #"()))" +0 0 26 29 1 #"\n" +0 0 26 3 7 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 23 3 2 #"1'" +0 0 26 3 4 #"()))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" -0 0 23 3 2 #"25" +0 0 14 3 4 #"cons" 0 0 26 3 1 #" " -0 0 23 3 2 #"16" +0 0 23 3 1 #"3" +0 0 26 29 1 #"\n" +0 0 26 3 13 #" (" +0 0 14 3 4 #"cons" 0 0 26 3 1 #" " -0 0 23 3 1 #"9" +0 0 23 3 1 #"2" 0 0 26 3 1 #" " -0 0 23 3 1 #"4" +0 0 26 29 1 #"\n" +0 0 26 3 7 #" (" +0 0 14 3 4 #"cons" 0 0 26 3 1 #" " -0 0 23 3 1 #"1" -0 0 26 3 1 #")" +0 0 23 3 2 #"1'" +0 0 26 3 5 #"())))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 4 #"cons" +0 0 26 3 2 #" " +0 0 23 3 2 #"16" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 23 3 2 #"25" +0 0 26 3 1 #" " +0 0 23 3 1 #"'" +0 0 26 3 4 #"()))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" @@ -941,7 +1043,7 @@ 0 0 26 3 1 #" " 0 0 14 3 4 #"seed" 0 0 26 3 1 #" " -0 0 29 3 1 #"." +0 0 30 3 1 #"." 0 0 26 3 1 #" " 0 0 14 3 4 #"nums" 0 0 26 3 1 #")" @@ -1047,7 +1149,7 @@ 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 211 4 0 0 0 34 0 26 3 1 #"(" +0 7 211 4 0 0 0 34 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" 0 0 14 3 11 #"square-list" @@ -1083,7 +1185,7 @@ 0 0 26 3 5 #")))))" 0 0 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 97 4 0 0 0 15 0 26 3 1 #"(" +0 7 97 4 0 0 0 15 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" 0 0 14 3 11 #"square-list" @@ -1162,7 +1264,7 @@ 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 9 313 4 0 0 0 51 0 26 3 1 #"(" +0 7 313 4 0 0 0 51 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" 0 0 14 3 11 #"square-list" @@ -1219,7 +1321,7 @@ #";reverses because iteratively we act on the car first but it also ge" #"ts cons'ed first. " ) 0 0 26 29 1 #"\n" -0 9 361 4 0 0 0 59 0 26 3 1 #"(" +0 7 361 4 0 0 0 59 0 26 3 1 #"(" 0 0 16 3 6 #"define" 0 0 26 3 2 #" (" 0 0 14 3 11 #"square-list" @@ -1452,7 +1554,7 @@ 0 0 26 3 6 #"))))))" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 0 26 3 1 #"(" +0 7 109 4 0 0 0 17 0 26 3 1 #"(" 0 0 14 3 12 #"count-leaves" 0 0 26 3 1 #"(" 0 0 14 3 4 #"list" @@ -1469,9 +1571,9 @@ 0 0 26 3 1 #" " 0 0 23 3 1 #"4" 0 0 26 3 4 #"))))" +0 0 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" -0 0 26 29 1 #"\n" -0 0 26 3 1 #"(" +0 7 457 4 0 0 0 75 0 26 3 1 #"(" 0 0 14 3 3 #"car" 0 0 26 3 1 #"(" 0 0 14 3 3 #"cdr" @@ -1546,7 +1648,7 @@ 0 0 26 3 1 #" " 0 0 23 3 1 #"7" 0 0 26 3 18 #"))))))))))))))))))" -0 0 26 29 1 #"\n" +0 0 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" @@ -1576,7 +1678,7 @@ 0 0 23 3 1 #"6" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" -0 0 26 3 1 #"(" +0 7 145 4 0 0 0 23 0 26 3 1 #"(" 0 0 14 3 6 #"append" 0 0 26 3 1 #" " 0 0 14 3 1 #"x" @@ -1599,4 +1701,345 @@ 0 0 26 3 1 #" " 0 0 14 3 1 #"y" 0 0 26 3 1 #")" +0 0 0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 12 #"deep-reverse" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 16 3 4 #"cond" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 5 #"null?" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 1 #")" +0 0 23 3 1 #"'" +0 0 26 3 3 #"()]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 6 #"append" +0 0 26 3 2 #" (" +0 0 14 3 12 #"deep-reverse" +0 0 26 3 1 #"(" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 14 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #"(" +0 0 14 3 12 #"deep-reverse" +0 0 26 3 1 #"(" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 5 #"))))]" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" [" +0 0 14 3 4 #"else" +0 0 26 3 1 #" " +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 6 #"append" +0 0 26 3 2 #" (" +0 0 14 3 12 #"deep-reverse" +0 0 26 3 2 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 14 #" (" +0 0 14 3 4 #"list" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 4 #")))]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" ))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 1 #"z" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 2 #"-1" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"0" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 3 #") (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 3 #"))(" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"5" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"6" +0 0 26 3 1 #" " +0 0 23 3 1 #"7" +0 0 26 3 3 #")) " +0 0 23 3 1 #"8" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 2 #") " +0 0 23 3 2 #"11" +0 0 26 3 1 #" " +0 0 23 3 2 #"12" +0 0 26 3 2 #"))" +0 0 23 3 2 #"13" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 14 3 1 #"z" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 12 #"deep-reverse" +0 0 26 3 1 #" " +0 0 14 3 1 #"z" +0 0 26 3 2 #")(" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 20 3 14 #"\"deep reverse\"" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 18 3 2 #";(" +0 0 18 3 5 #"pair?" +0 0 18 3 2 #" (" +0 0 18 3 3 #"cdr" +0 0 18 3 1 #" " +0 0 18 3 3 #"z))" +0 0 26 29 1 #"\n" +0 0 18 3 2 #";(" +0 0 18 3 3 #"cdr" +0 0 18 3 1 #" " +0 0 18 3 2 #"z)" +0 0 26 29 1 #"\n" +0 0 18 3 2 #";(" +0 0 18 3 7 #"reverse" +0 0 18 3 1 #" " +0 0 18 3 2 #"z)" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 6 #"fringe" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 16 3 4 #"cond" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 5 #"null?" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 1 #")" +0 0 23 3 1 #"'" +0 0 26 3 3 #"()]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 3 #"not" +0 0 26 3 1 #"(" +0 0 14 3 5 #"pair?" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"newline" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"display" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 20 3 12 #"\" not pair:\"" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 6 #")] " +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"newline" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"display" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 20 3 12 #"\" car pair:\"" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" " +0 0 18 3 21 #";car itself is a pair" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 6 #"append" +0 0 26 3 2 #" (" +0 0 14 3 6 #"fringe" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 14 #" (" +0 0 14 3 6 #"append" +0 0 26 3 2 #" (" +0 0 14 3 6 #"fringe" +0 0 26 3 2 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 19 #" (" +0 0 14 3 6 #"fringe" +0 0 26 3 2 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 5 #"))))]" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" [" +0 0 14 3 4 #"else" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" " +0 0 18 3 30 #";car itself is an atom in list" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"newline" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 7 #"display" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 1 #" " +0 0 20 3 1 #"\"" +0 0 20 3 1 #" " +0 0 20 3 6 #"else:\"" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 4 #"cons" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 14 #" (" +0 0 14 3 6 #"fringe" +0 0 26 3 2 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 1 #"x" +0 0 26 3 4 #")))]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" ))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 1 #"v" +0 0 26 3 1 #" " +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"list" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 3 #") (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 1 #"(" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 6 #"fringe" +0 0 26 3 2 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 14 3 1 #"v" +0 0 26 3 1 #" " +0 0 14 3 1 #"v" +0 0 26 3 2 #"))" 0 0 From 0777b8188aae25502fd503c5d14212b65ad984d5 Mon Sep 17 00:00:00 2001 From: jwilliamson1 Date: Mon, 1 Jan 2018 21:46:00 -0500 Subject: [PATCH 3/3] work on mobile --- lists-sicp.rkt | 875 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 817 insertions(+), 58 deletions(-) diff --git a/lists-sicp.rkt b/lists-sicp.rkt index 98cabd3..dc3a199 100644 --- a/lists-sicp.rkt +++ b/lists-sicp.rkt @@ -332,7 +332,29 @@ 30 3 0 -1 -1 4 1 #"\0" 0 -1 1 #"\0" 1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 1 0.0 0.0 0.0 0.0 0.0 0.0 255 255 255 -0 31 31 -1 -1 0 1397 0 30 3 12 #"#lang racket" +0 31 31 -1 -1 0 2150 0 30 3 12 #"#lang racket" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 3 #"dis" +0 0 26 3 1 #" " +0 0 14 3 4 #"text" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 2 #" " +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 7 #"display" +0 0 26 3 1 #" " +0 0 14 3 4 #"text" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 7 #"newline" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" 0 0 16 3 6 #"define" @@ -1828,34 +1850,30 @@ 0 0 23 3 2 #"13" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" -0 0 14 3 1 #"z" +0 0 18 3 2 #";z" 0 0 26 29 1 #"\n" -0 0 26 3 1 #"(" -0 0 14 3 12 #"deep-reverse" -0 0 26 3 1 #" " -0 0 14 3 1 #"z" -0 0 26 3 2 #")(" -0 0 14 3 7 #"display" -0 0 26 3 1 #" " -0 0 20 3 14 #"\"deep reverse\"" -0 0 26 3 1 #")" +0 0 18 3 2 #";(" +0 0 18 3 12 #"deep-reverse" +0 0 18 3 1 #" " +0 0 18 3 1 #"z" +0 0 18 3 2 #")(" +0 0 18 3 7 #"display" +0 0 18 3 1 #" " +0 0 18 3 15 #"\"deep reverse\")" 0 0 26 29 1 #"\n" 0 0 18 3 2 #";(" 0 0 18 3 5 #"pair?" 0 0 18 3 2 #" (" 0 0 18 3 3 #"cdr" -0 0 18 3 1 #" " -0 0 18 3 3 #"z))" +0 0 18 3 4 #" z))" 0 0 26 29 1 #"\n" 0 0 18 3 2 #";(" 0 0 18 3 3 #"cdr" -0 0 18 3 1 #" " -0 0 18 3 2 #"z)" +0 0 18 3 3 #" z)" 0 0 26 29 1 #"\n" 0 0 18 3 2 #";(" 0 0 18 3 7 #"reverse" -0 0 18 3 1 #" " -0 0 18 3 2 #"z)" +0 0 18 3 3 #" z)" 0 0 26 29 1 #"\n" 0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" @@ -1885,19 +1903,19 @@ 0 0 14 3 1 #"x" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"newline" -0 0 26 3 1 #")" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 8 #"newline)" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"display" -0 0 26 3 2 #" (" -0 0 14 3 4 #"cons" -0 0 26 3 1 #" " -0 0 20 3 12 #"\" not pair:\"" -0 0 26 3 1 #" " -0 0 14 3 1 #"x" -0 0 26 3 2 #"))" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 7 #"display" +0 0 18 3 2 #" (" +0 0 18 3 4 #"cons" +0 0 18 3 1 #" " +0 0 18 3 12 #"\" not pair:\"" +0 0 18 3 1 #" " +0 0 18 3 3 #"x))" 0 0 26 29 1 #"\n" 0 0 26 3 6 #" (" 0 0 14 3 4 #"list" @@ -1913,19 +1931,19 @@ 0 0 14 3 1 #"x" 0 0 26 3 2 #"))" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"newline" -0 0 26 3 1 #")" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 8 #"newline)" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"display" -0 0 26 3 2 #" (" -0 0 14 3 4 #"cons" -0 0 26 3 1 #" " -0 0 20 3 12 #"\" car pair:\"" -0 0 26 3 1 #" " -0 0 14 3 1 #"x" -0 0 26 3 2 #"))" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 7 #"display" +0 0 18 3 2 #" (" +0 0 18 3 4 #"cons" +0 0 18 3 1 #" " +0 0 18 3 12 #"\" car pair:\"" +0 0 18 3 1 #" " +0 0 18 3 3 #"x))" 0 0 26 29 1 #"\n" 0 0 26 3 5 #" " 0 0 18 3 21 #";car itself is a pair" @@ -1968,21 +1986,20 @@ 0 0 26 3 5 #" " 0 0 18 3 30 #";car itself is an atom in list" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"newline" -0 0 26 3 1 #")" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 8 #"newline)" 0 0 26 29 1 #"\n" -0 0 26 3 6 #" (" -0 0 14 3 7 #"display" -0 0 26 3 2 #" (" -0 0 14 3 4 #"cons" -0 0 26 3 1 #" " -0 0 20 3 1 #"\"" -0 0 20 3 1 #" " -0 0 20 3 6 #"else:\"" -0 0 26 3 1 #" " -0 0 14 3 1 #"x" -0 0 26 3 2 #"))" +0 0 26 3 5 #" " +0 0 18 3 2 #";(" +0 0 18 3 7 #"display" +0 0 18 3 2 #" (" +0 0 18 3 4 #"cons" +0 0 18 3 1 #" " +0 0 18 3 1 #"\"" +0 0 18 3 7 #" else:\"" +0 0 18 3 1 #" " +0 0 18 3 3 #"x))" 0 0 26 29 1 #"\n" 0 0 26 3 6 #" (" 0 0 14 3 4 #"cons" @@ -2033,13 +2050,755 @@ 0 0 23 3 1 #"4" 0 0 26 3 4 #"))))" 0 0 26 29 1 #"\n" +0 0 18 3 2 #";(" +0 0 18 3 6 #"fringe" +0 0 18 3 2 #" (" +0 0 18 3 4 #"list" +0 0 18 3 1 #" " +0 0 18 3 1 #"v" +0 0 18 3 1 #" " +0 0 18 3 3 #"v))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 18 3 33 #";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" +0 0 26 29 1 #"\n" +0 0 18 3 15 #";binary mobiles" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" 0 0 26 3 1 #"(" -0 0 14 3 6 #"fringe" +0 0 16 3 6 #"define" 0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 14 3 4 #"left" +0 0 26 3 1 #" " +0 0 14 3 5 #"right" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" 0 0 14 3 4 #"list" 0 0 26 3 1 #" " -0 0 14 3 1 #"v" +0 0 14 3 4 #"left" 0 0 26 3 1 #" " -0 0 14 3 1 #"v" +0 0 14 3 5 #"right" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 14 3 6 #"length" +0 0 26 3 1 #" " +0 0 14 3 9 #"structure" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"list" +0 0 26 3 1 #" " +0 0 14 3 6 #"length" +0 0 26 3 1 #" " +0 0 14 3 9 #"structure" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 11 #"left-branch" +0 0 26 3 1 #" " +0 0 14 3 6 #"mobile" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 6 #"mobile" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 12 #"right-branch" +0 0 26 3 1 #" " +0 0 14 3 6 #"mobile" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"mobile" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-length" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 16 #"branch-structure" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" 0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob1" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"8" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob2" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"5" +0 0 26 3 1 #" " +0 0 23 3 1 #"7" +0 0 26 3 3 #"))(" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob3" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"5" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 2 #"45" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 26 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob4" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"8" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob5" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"8" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"8" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 6 #"notmob" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #" " +0 0 23 3 1 #"5" +0 0 26 3 1 #" " +0 0 23 3 3 #"100" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 18 3 50 #";function incorrect due to misreading instructions" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 18 #"total-weight-wrong" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 16 3 4 #"cond" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 3 #"not" +0 0 26 3 2 #" (" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" " +0 0 14 3 3 #"mob" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 3 #"dis" +0 0 26 3 1 #" " +0 0 20 3 4 #"\"not" +0 0 20 3 1 #" " +0 0 20 3 1 #"a" +0 0 20 3 1 #" " +0 0 20 3 5 #"pair " +0 0 20 3 1 #"\"" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" " +0 0 14 3 3 #"mob" +0 0 26 3 1 #"]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 3 #"and" +0 0 26 3 1 #"(" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 12 #"))) " +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 1 #"+" +0 0 26 3 2 #" (" +0 0 14 3 18 #"total-weight-wrong" +0 0 26 3 2 #" (" +0 0 14 3 5 #"cadar" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 3 #"))(" +0 0 14 3 18 #"total-weight-wrong" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 4 #")))]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 11 #")) " +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 1 #"+" +0 0 26 3 2 #" (" +0 0 14 3 18 #"total-weight-wrong" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 4 #")))]" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" [" +0 0 14 3 4 #"else" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 3 #"dis" +0 0 26 3 1 #" " +0 0 20 3 6 #"\"else\"" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 2 #")]" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" ))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 14 3 6 #"notmob" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob1" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob1" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 5 #"cadar" +0 0 26 3 2 #" " +0 0 14 3 7 #"notmob2" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 18 #"total-weight-wrong" +0 0 26 3 1 #" " +0 0 14 3 7 #"notmob5" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 4 #"mob6" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"8" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 1 #" " +0 0 23 3 2 #"10" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 4 #"mob7" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 2 #"( " +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 29 1 #"\n" +0 0 26 3 67 +#" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"5" +0 0 26 3 1 #" " +0 0 23 3 1 #"9" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 67 +#" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"6" +0 0 26 3 1 #" " +0 0 23 3 1 #"9" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 26 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 1 #" " +0 0 23 3 1 #"4" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 1 #" " +0 0 14 3 4 #"mob8" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 2 #" (" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 1 #" " +0 0 23 3 1 #"2" +0 0 26 3 2 #")(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 29 1 #"\n" +0 0 26 3 57 #" (" +0 0 14 3 11 #"make-mobile" +0 0 26 3 1 #"(" +0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 69 +( + #" " + #"(" +) 0 0 14 3 11 #"make-branch" +0 0 26 3 1 #" " +0 0 23 3 1 #"1" +0 0 26 3 1 #" " +0 0 23 3 1 #"3" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 59 +#" )))" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 3 #"dis" +0 0 26 3 1 #" " +0 0 20 3 5 #"\"mob\"" +0 0 26 3 1 #")" +0 0 14 3 4 #"mob7" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 12 #"total-weight" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-weight" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" (" +0 0 14 3 3 #"dis" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 5 #" (" +0 0 14 3 2 #"if" +0 0 26 3 2 #" (" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 10 #")) " +0 0 26 29 1 #"\n" +0 0 26 3 9 #" (" +0 0 14 3 12 #"total-weight" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 10 #")) " +0 0 26 29 1 #"\n" +0 0 26 3 10 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 1 #"+" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-weight" +0 0 26 3 2 #" (" +0 0 14 3 11 #"left-branch" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 3 #"))(" +0 0 14 3 13 #"branch-weight" +0 0 26 3 2 #" (" +0 0 14 3 12 #"right-branch" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 10 #"branch-len" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 3 #"car" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-struct" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 3 #"cdr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 4 #"mob?" +0 0 26 3 1 #" " +0 0 14 3 4 #"strt" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 5 #"pair?" +0 0 26 3 1 #" " +0 0 14 3 4 #"strt" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 6 #"torque" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 1 #"*" +0 0 26 3 2 #" (" +0 0 14 3 10 #"branch-len" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 6 #") " +0 0 26 29 1 #"\n" +0 0 26 3 7 #" (" +0 0 14 3 2 #"if" +0 0 26 3 2 #" (" +0 0 14 3 5 #"pair?" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 11 #" (" +0 0 14 3 12 #"total-weight" +0 0 26 3 2 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 11 #" (" +0 0 14 3 4 #"cadr" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 2 #"))" +0 0 26 29 1 #"\n" +0 0 26 3 8 #" ))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 15 #"branch-has-mob?" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 4 #"mob?" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-struct" +0 0 26 3 1 #" " +0 0 14 3 6 #"branch" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 16 3 6 #"define" +0 0 26 3 2 #" (" +0 0 14 3 9 #"balanced?" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 16 3 4 #"cond" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" [(" +0 0 14 3 3 #"and" +0 0 26 3 2 #" (" +0 0 14 3 15 #"branch-has-mob?" +0 0 26 3 2 #" (" +0 0 14 3 11 #"left-branch" +0 0 26 3 1 #"(" +0 0 14 3 3 #"mob" +0 0 26 3 3 #")))" +0 0 26 29 1 #"\n" +0 0 26 3 11 #" (" +0 0 14 3 15 #"branch-has-mob?" +0 0 26 3 2 #" (" +0 0 14 3 12 #"right-branch" +0 0 26 3 1 #"(" +0 0 14 3 3 #"mob" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 6 #" (" +0 0 14 3 1 #"=" +0 0 26 3 2 #" (" +0 0 14 3 8 #"balanced" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-struct" +0 0 26 3 2 #" (" +0 0 14 3 11 #"left-branch" +0 0 26 3 1 #"(" +0 0 14 3 3 #"mob" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 9 #" (" +0 0 14 3 8 #"balanced" +0 0 26 3 2 #" (" +0 0 14 3 13 #"branch-struct" +0 0 26 3 2 #" (" +0 0 14 3 12 #"right-branch" +0 0 26 3 1 #"(" +0 0 14 3 3 #"mob" +0 0 26 3 5 #")))))" +0 0 26 29 1 #"\n" +0 0 26 3 3 #" (" +0 0 14 3 1 #"=" +0 0 26 3 2 #" (" +0 0 14 3 6 #"torque" +0 0 26 3 2 #" (" +0 0 14 3 11 #"left-branch" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 3 #"))(" +0 0 14 3 6 #"torque" +0 0 26 3 2 #" (" +0 0 14 3 12 #"right-branch" +0 0 26 3 1 #" " +0 0 14 3 3 #"mob" +0 0 26 3 4 #"))))" +0 0 26 29 1 #"\n" +0 0 26 3 2 #" " +0 0 26 29 1 #"\n" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 12 #"total-weight" +0 0 26 3 1 #" " +0 0 14 3 4 #"mob8" +0 0 26 3 1 #")" +0 0 26 29 1 #"\n" +0 0 26 3 1 #"(" +0 0 14 3 9 #"balanced?" +0 0 26 3 1 #" " +0 0 14 3 4 #"mob8" +0 0 26 3 1 #")" 0 0