home *** CD-ROM | disk | FTP | other *** search
Unknown | 1984-10-20 | 5.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Follin Player Module (music/follinPlayer)
| ext
| Supported |
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'FASL FILE
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 41 53 4c 20 46 49 4c | 45 0d 0a 43 6f 70 79 72 |FASL FIL|E..Copyr|
|00000010| 69 67 68 74 20 28 63 29 | 20 31 39 38 34 20 53 61 |ight (c)| 1984 Sa|
|00000020| 6e 20 4d 61 72 63 6f 20 | 41 73 73 6f 63 69 61 74 |n Marco |Associat|
|00000030| 65 73 0d 0a 09 41 6c 6c | 20 72 69 67 68 74 73 20 |es...All| rights |
|00000040| 72 65 73 65 72 76 65 64 | 2e 0d 0a 1a ff 07 04 55 |reserved|.......U|
|00000050| 53 45 52 0e 0d 00 00 00 | 00 07 04 4c 49 53 50 0e |SER.....|...LISP.|
|00000060| 0b 01 04 53 45 54 46 07 | 0a 47 45 54 2d 4c 45 53 |...SETF.|.GET-LES|
|00000070| 53 4f 4e 0b 01 05 51 55 | 4f 54 45 07 07 49 4e 53 |SON...QU|OTE..INS|
|00000080| 45 52 54 32 04 10 02 04 | 10 02 0b 01 05 51 55 4f |ERT2....|.....QUO|
|00000090| 54 45 07 06 4c 45 53 53 | 4f 4e 07 07 49 4e 53 45 |TE..LESS|ON..INSE|
|000000a0| 52 54 32 0b 01 04 4e 41 | 4d 45 07 07 49 4e 53 45 |RT2...NA|ME..INSE|
|000000b0| 52 54 32 04 10 01 07 04 | 4e 45 58 54 07 07 44 45 |RT2.....|NEXT..DE|
|000000c0| 46 55 4e 2d 49 04 10 01 | 07 08 50 52 45 56 49 4f |FUN-I...|..PREVIO|
|000000d0| 55 53 07 07 50 49 43 4b | 2d 49 49 04 10 01 07 0b |US..PICK|-II.....|
|000000e0| 4c 45 53 53 4f 4e 2d 4e | 41 4d 45 26 14 54 68 65 |LESSON-N|AME&.The|
|000000f0| 20 43 4f 4e 53 20 43 6f | 6e 73 74 72 75 63 74 6f | CONS Co|nstructo|
|00000100| 72 04 10 01 04 10 08 07 | 05 53 4c 49 44 45 07 0a |r.......|.SLIDE..|
|00000110| 45 58 50 4f 53 49 54 49 | 4f 4e 23 01 00 00 00 04 |EXPOSITI|ON#.....|
|00000120| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 26 ef 0a 54 |..EXPOSI|TION&..T|
|00000130| 6f 20 70 75 74 20 6c 69 | 73 74 73 20 74 6f 67 65 |o put li|sts toge|
|00000140| 74 68 65 72 2c 20 70 72 | 69 6d 69 74 69 76 65 73 |ther, pr|imitives|
|00000150| 20 63 61 6c 6c 65 64 20 | 43 4f 4e 53 54 52 55 43 | called |CONSTRUC|
|00000160| 54 4f 52 53 20 61 72 65 | 20 75 73 65 64 2e 20 0a |TORS are| used. .|
|00000170| 48 65 72 65 20 77 65 20 | 77 69 6c 6c 20 6c 6f 6f |Here we |will loo|
|00000180| 6b 20 6f 6e 6c 79 20 61 | 74 20 74 68 65 20 63 6f |k only a|t the co|
|00000190| 6e 73 74 72 75 63 74 6f | 72 20 6e 61 6d 65 64 20 |nstructo|r named |
|000001a0| 43 4f 4e 53 2e 20 4c 61 | 74 65 72 20 6f 6e 2c 0a |CONS. La|ter on,.|
|000001b0| 69 6e 20 61 6e 6f 74 68 | 65 72 20 74 72 61 79 2c |in anoth|er tray,|
|000001c0| 20 77 65 20 77 69 6c 6c | 20 6c 6f 6f 6b 20 61 74 | we will| look at|
|000001d0| 20 6d 6f 72 65 2e 0a 0a | 4e 61 6d 65 20 6f 66 20 | more...|Name of |
|000001e0| 63 6f 6e 73 74 72 75 63 | 74 6f 72 00 04 50 75 72 |construc|tor..Pur|
|000001f0| 70 6f 73 65 0a 0a 43 4f | 4e 53 00 13 41 64 64 20 |pose..CO|NS..Add |
|00000200| 65 6c 65 6d 65 6e 74 20 | 74 6f 20 61 6e 20 65 78 |element |to an ex|
|00000210| 69 73 74 69 6e 67 20 6c | 69 73 74 2e 0a 23 09 00 |isting l|ist..#..|
|00000220| 00 00 10 01 04 27 03 00 | 00 00 2e 27 05 00 00 00 |.....'..|...'....|
|00000230| 2e 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00000240| 54 49 4f 4e 23 02 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00000250| 53 49 54 49 4f 4e 25 88 | 01 00 00 0a 43 4f 4e 53 |SITION%.|....CONS|
|00000260| 20 69 73 20 73 68 6f 72 | 74 20 66 6f 72 20 43 4f | is shor|t for CO|
|00000270| 4e 53 74 72 75 63 74 2e | 00 02 49 74 73 20 6a 6f |NStruct.|..Its jo|
|00000280| 62 20 69 73 20 74 6f 20 | 74 61 63 6b 20 61 20 6e |b is to |tack a n|
|00000290| 65 77 20 65 6c 65 6d 65 | 6e 74 0a 6f 6e 74 6f 20 |ew eleme|nt.onto |
|000002a0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000002b0| 20 61 20 6c 69 73 74 3b | 20 68 65 72 65 20 69 73 | a list;| here is|
|000002c0| 20 61 6e 20 65 78 61 6d | 70 6c 65 3a 0a 0a 00 09 | an exam|ple:....|
|000002d0| da c4 c4 c4 c4 c4 bf 0a | 00 09 b3 00 05 b3 0a 00 |........|........|
|000002e0| 09 b3 00 05 1f 0a 2a 20 | 28 43 4f 4e 53 20 27 41 |......* |(CONS 'A|
|000002f0| 00 03 27 28 00 02 42 20 | 43 29 20 29 0a 28 41 20 |..'(..B |C) ).(A |
|00000300| 42 20 43 29 0a 0a 41 73 | 73 75 6d 69 6e 67 20 4c |B C)..As|suming L|
|00000310| 27 73 20 76 61 6c 75 65 | 20 69 73 20 28 41 20 42 |'s value| is (A B|
|00000320| 29 20 61 6e 64 20 4d 27 | 73 20 76 61 6c 75 65 20 |) and M'|s value |
|00000330| 69 73 20 28 28 4c 20 4d | 29 20 28 58 20 59 29 29 |is ((L M|) (X Y))|
|00000340| 2c 20 74 68 65 6e 3a 0a | 0a 00 1c da c4 c4 c4 c4 |, then:.|........|
|00000350| c4 c4 c4 c4 c4 bf 0a 00 | 1c b3 00 09 b3 0a 2a 20 |........|......* |
|00000360| 28 43 4f 4e 53 20 4c 20 | 4d 29 00 10 b3 00 09 1f |(CONS L |M)......|
|00000370| 0a 28 28 41 20 42 29 20 | 28 4c 20 4d 29 20 28 58 |.((A B) |(L M) (X|
|00000380| 20 59 29 29 00 07 28 41 | 20 42 29 00 04 28 00 06 | Y))..(A| B)..(..|
|00000390| 28 4c 20 4d 29 20 28 58 | 20 59 29 29 0a 0a 00 1c |(L M) (X| Y))....|
|000003a0| da c4 c4 c4 c4 c4 c4 c4 | c4 c4 bf 0a 00 1c b3 00 |........|........|
|000003b0| 09 b3 0a 2a 20 28 43 4f | 4e 53 20 4c 20 4c 29 00 |...* (CO|NS L L).|
|000003c0| 10 b3 00 09 1f 0a 28 28 | 41 20 42 29 20 41 20 42 |......((|A B) A B|
|000003d0| 29 00 0f 28 41 20 42 29 | 00 04 28 00 06 41 00 02 |)..(A B)|..(..A..|
|000003e0| 42 29 0a 23 16 00 00 00 | 10 01 04 27 03 00 00 00 |B).#....|...'....|
|000003f0| 2e 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 08 |.'......|.SLIDE..|
|00000400| 45 58 41 4d 50 4c 45 53 | 23 03 00 00 00 04 07 0d |EXAMPLES|#.......|
|00000410| 45 58 41 4d 50 4c 45 2d | 47 52 4f 55 50 26 19 45 |EXAMPLE-|GROUP&.E|
|00000420| 76 61 6c 75 61 74 65 20 | 74 68 65 20 67 69 76 65 |valuate |the give|
|00000430| 6e 20 66 6f 72 6d 73 2e | 23 01 00 00 00 10 01 26 |n forms.|#......&|
|00000440| 12 2a 20 28 43 4f 4e 53 | 20 27 41 20 27 28 42 20 |.* (CONS| 'A '(B |
|00000450| 43 29 29 23 01 00 00 00 | 10 01 26 22 28 41 20 42 |C))#....|..&"(A B|
|00000460| 20 43 29 00 0f 3b 41 64 | 64 20 6e 65 77 20 65 6c | C)..;Ad|d new el|
|00000470| 65 6d 65 6e 74 20 74 6f | 20 6c 69 73 74 2e 23 01 |ement to| list.#.|
|00000480| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|00000490| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 14 2a 20 28 |MPLE-GRO|UP.&.* (|
|000004a0| 43 4f 4e 53 20 27 28 41 | 29 20 27 28 42 20 43 29 |CONS '(A|) '(B C)|
|000004b0| 29 23 01 00 00 00 10 01 | 26 45 28 28 41 29 20 42 |)#......|&E((A) B|
|000004c0| 20 43 29 00 0d 3b 41 64 | 64 20 6e 65 77 20 65 6c | C)..;Ad|d new el|
|000004d0| 65 6d 65 6e 74 20 74 6f | 20 6c 69 73 74 2c 0a 00 |ement to| list,..|
|000004e0| 16 3b 6e 65 77 20 65 6c | 65 6d 65 6e 74 20 69 73 |.;new el|ement is|
|000004f0| 20 61 20 6c 69 73 74 20 | 69 74 73 65 6c 66 2e 23 | a list |itself.#|
|00000500| 02 00 00 00 10 01 27 04 | 00 00 00 2e 04 10 02 27 |......'.|.......'|
|00000510| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 08 45 58 |.......S|LIDE..EX|
|00000520| 41 4d 50 4c 45 53 23 04 | 00 00 00 04 07 0d 45 58 |AMPLES#.|......EX|
|00000530| 41 4d 50 4c 45 2d 47 52 | 4f 55 50 26 1a 41 73 73 |AMPLE-GR|OUP&.Ass|
|00000540| 75 6d 65 20 4c 27 73 20 | 76 61 6c 75 65 20 69 73 |ume L's |value is|
|00000550| 20 28 42 20 43 29 2e 23 | 01 00 00 00 10 01 26 0d | (B C).#|......&.|
|00000560| 2a 20 28 43 4f 4e 53 20 | 27 41 20 4c 29 23 01 00 |* (CONS |'A L)#..|
|00000570| 00 00 10 01 26 07 28 41 | 20 42 20 43 29 23 01 00 |....&.(A| B C)#..|
|00000580| 00 00 10 01 27 04 00 00 | 00 2e 07 0d 45 58 41 4d |....'...|....EXAM|
|00000590| 50 4c 45 2d 47 52 4f 55 | 50 04 26 0d 2a 20 28 43 |PLE-GROU|P.&.* (C|
|000005a0| 4f 4e 53 20 27 4c 20 4c | 29 23 01 00 00 00 10 01 |ONS 'L L|)#......|
|000005b0| 26 2a 28 4c 20 42 20 43 | 29 00 17 3b 41 64 64 65 |&*(L B C|)..;Adde|
|000005c0| 64 20 73 79 6d 62 6f 6c | 20 74 6f 20 76 61 6c 75 |d symbol| to valu|
|000005d0| 65 20 6f 66 20 73 79 6d | 62 6f 6c 2e 23 01 00 00 |e of sym|bol.#...|
|000005e0| 00 10 01 27 04 00 00 00 | 2e 07 0d 45 58 41 4d 50 |...'....|...EXAMP|
|000005f0| 4c 45 2d 47 52 4f 55 50 | 04 26 0f 2a 20 28 43 4f |LE-GROUP|.&.* (CO|
|00000600| 4e 53 20 27 28 41 29 20 | 4c 29 23 01 00 00 00 10 |NS '(A) |L)#.....|
|00000610| 01 26 2b 28 28 41 29 20 | 42 20 43 29 00 15 3b 45 |.&+((A) |B C)..;E|
|00000620| 6c 65 6d 65 6e 74 20 61 | 64 64 65 64 20 69 73 20 |lement a|dded is |
|00000630| 61 20 6c 69 73 74 20 69 | 74 73 65 6c 66 2e 23 01 |a list i|tself.#.|
|00000640| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|00000650| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 11 2a 20 28 |MPLE-GRO|UP.&.* (|
|00000660| 43 4f 4e 53 20 27 28 41 | 20 42 29 20 4c 29 23 01 |CONS '(A| B) L)#.|
|00000670| 00 00 00 10 01 26 2d 28 | 28 41 20 42 29 20 42 20 |.....&-(|(A B) B |
|00000680| 43 29 00 13 3b 45 6c 65 | 6d 65 6e 74 20 61 64 64 |C)..;Ele|ment add|
|00000690| 65 64 20 69 73 20 61 20 | 6c 69 73 74 20 69 74 73 |ed is a |list its|
|000006a0| 65 6c 66 2e 23 01 00 00 | 00 10 01 27 04 00 00 00 |elf.#...|...'....|
|000006b0| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|000006c0| 04 26 1c 2a 20 28 43 4f | 4e 53 20 27 41 20 28 43 |.&.* (CO|NS 'A (C|
|000006d0| 4f 4e 53 20 27 42 20 27 | 28 43 20 44 29 29 29 23 |ONS 'B '|(C D)))#|
|000006e0| 01 00 00 00 10 01 26 49 | 28 41 20 42 20 43 20 44 |......&I|(A B C D|
|000006f0| 29 00 15 3b 49 6e 73 69 | 64 65 20 43 4f 4e 53 20 |)..;Insi|de CONS |
|00000700| 72 65 74 75 72 6e 73 20 | 28 42 20 43 20 44 29 2c |returns |(B C D),|
|00000710| 0a 00 1e 3b 6f 75 74 73 | 69 64 65 20 43 4f 4e 53 |...;outs|ide CONS|
|00000720| 20 61 64 64 73 20 41 20 | 74 6f 20 66 72 6f 6e 74 | adds A |to front|
|00000730| 2e 23 02 00 00 00 10 01 | 27 04 00 00 00 2e 04 10 |.#......|'.......|
|00000740| 05 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|00000750| 45 58 50 4f 53 49 54 49 | 4f 4e 23 05 00 00 00 04 |EXPOSITI|ON#.....|
|00000760| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 03 02 00 |..EXPOSI|TION%...|
|00000770| 00 0a 59 6f 75 20 77 69 | 6c 6c 20 6f 66 74 65 6e |..You wi|ll often|
|00000780| 20 63 6f 6d 62 69 6e 65 | 20 53 45 54 46 20 61 6e | combine| SETF an|
|00000790| 64 20 43 4f 4e 53 20 74 | 68 69 73 20 77 61 79 3a |d CONS t|his way:|
|000007a0| 0a 0a 28 53 45 54 46 20 | 3c 6e 61 6d 65 20 6f 66 |..(SETF |<name of|
|000007b0| 20 61 20 6c 69 73 74 3e | 20 28 43 4f 4e 53 20 3c | a list>| (CONS <|
|000007c0| 6e 65 77 20 65 6c 65 6d | 65 6e 74 3e 20 3c 6e 61 |new elem|ent> <na|
|000007d0| 6d 65 20 6f 66 20 74 68 | 65 20 6c 69 73 74 3e 29 |me of th|e list>)|
|000007e0| 29 0a 0a 48 65 72 65 20 | 69 73 20 74 68 65 20 63 |)..Here |is the c|
|000007f0| 6f 72 72 65 73 70 6f 6e | 64 65 6e 63 65 20 62 65 |orrespon|dence be|
|00000800| 74 77 65 65 6e 20 74 68 | 65 20 74 65 6d 70 6c 61 |tween th|e templa|
|00000810| 74 65 20 61 6e 64 20 74 | 68 65 20 65 78 61 6d 70 |te and t|he examp|
|00000820| 6c 65 0a 28 53 45 54 46 | 20 4c 20 28 43 4f 4e 53 |le.(SETF| L (CONS|
|00000830| 20 27 58 20 4c 29 29 2c | 20 61 73 73 75 6d 69 6e | 'X L)),| assumin|
|00000840| 67 20 4c 27 73 20 76 61 | 6c 75 65 20 69 73 20 28 |g L's va|lue is (|
|00000850| 59 20 5a 29 3a 0a 0a 00 | 02 28 53 45 54 46 20 3c |Y Z):...|.(SETF <|
|00000860| 6e 61 6d 65 20 6f 66 20 | 61 20 6c 69 73 74 3e 20 |name of |a list> |
|00000870| 28 43 4f 4e 53 20 3c 6e | 65 77 20 65 6c 65 6d 65 |(CONS <n|ew eleme|
|00000880| 6e 74 3e 20 3c 6e 61 6d | 65 20 6f 66 20 74 68 65 |nt> <nam|e of the|
|00000890| 20 6c 69 73 74 3e 29 29 | 0a 00 08 b3 00 16 b3 00 | list>))|........|
|000008a0| 0d b3 0a 00 08 1f 00 16 | 1f 00 0d 1f 0a 2a 20 28 |........|.....* (|
|000008b0| 53 45 54 46 20 4c 00 10 | 28 43 4f 4e 53 20 27 58 |SETF L..|(CONS 'X|
|000008c0| 00 0c 4c 00 11 29 29 0a | 28 58 20 59 20 5a 29 00 |..L..)).|(X Y Z).|
|000008d0| 26 1e 0a 00 2d b3 0a 00 | 28 56 61 6c 75 65 20 69 |&...-...|(Value i|
|000008e0| 73 20 28 59 20 5a 29 2e | 0a 0a 4e 6f 74 65 20 74 |s (Y Z).|..Note t|
|000008f0| 68 61 74 20 4c 27 73 20 | 4f 4c 44 20 76 61 6c 75 |hat L's |OLD valu|
|00000900| 65 20 69 73 20 66 6f 75 | 6e 64 2c 20 74 68 65 6e |e is fou|nd, then|
|00000910| 20 74 68 65 20 43 4f 4e | 53 20 6d 61 6b 65 73 20 | the CON|S makes |
|00000920| 61 20 4e 45 57 20 6c 69 | 73 74 2c 0a 61 6e 64 20 |a NEW li|st,.and |
|00000930| 74 68 65 6e 20 53 45 54 | 46 20 61 74 74 61 63 68 |then SET|F attach|
|00000940| 65 73 20 74 68 65 20 4e | 45 57 20 6c 69 73 74 20 |es the N|EW list |
|00000950| 74 6f 20 74 68 65 20 73 | 61 6d 65 20 73 79 6d 62 |to the s|ame symb|
|00000960| 6f 6c 2c 20 4c 3a 0a 0a | 2a 20 4c 0a 28 58 20 59 |ol, L:..|* L.(X Y|
|00000970| 20 5a 29 0a 23 16 00 00 | 00 10 01 04 27 03 00 00 | Z).#...|....'...|
|00000980| 00 2e 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00000990| 0a 45 58 50 4f 53 49 54 | 49 4f 4e 23 06 00 00 00 |.EXPOSIT|ION#....|
|000009a0| 04 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 25 61 01 |...EXPOS|ITION%a.|
|000009b0| 00 00 0a 48 65 72 65 20 | 61 67 61 69 6e 20 69 73 |...Here |again is|
|000009c0| 20 77 68 61 74 20 68 61 | 70 70 65 6e 73 20 77 68 | what ha|ppens wh|
|000009d0| 65 6e 20 53 45 54 46 20 | 61 6e 64 20 43 4f 4e 53 |en SETF |and CONS|
|000009e0| 20 61 72 65 20 63 6f 6d | 62 69 6e 65 64 3a 0a 0a | are com|bined:..|
|000009f0| 6f 00 04 47 65 74 20 76 | 61 72 69 61 62 6c 65 27 |o..Get v|ariable'|
|00000a00| 73 20 70 72 65 73 65 6e | 74 20 76 61 6c 75 65 2c |s presen|t value,|
|00000a10| 20 77 68 69 63 68 20 69 | 73 20 61 20 6c 69 73 74 | which i|s a list|
|00000a20| 2e 0a 0a 6f 00 04 41 64 | 64 20 61 6e 20 65 6c 65 |...o..Ad|d an ele|
|00000a30| 6d 65 6e 74 2c 20 75 73 | 69 6e 67 20 43 4f 4e 53 |ment, us|ing CONS|
|00000a40| 2c 20 74 6f 20 74 68 65 | 20 6c 69 73 74 2c 20 6d |, to the| list, m|
|00000a50| 61 6b 69 6e 67 20 61 20 | 6e 65 77 20 6c 69 73 74 |aking a |new list|
|00000a60| 2e 0a 0a 6f 00 04 43 68 | 61 6e 67 65 20 76 61 72 |...o..Ch|ange var|
|00000a70| 69 61 62 6c 65 27 73 20 | 76 61 6c 75 65 20 74 6f |iable's |value to|
|00000a80| 20 74 68 65 20 6e 65 77 | 20 6c 69 73 74 2e 0a 0a | the new| list...|
|00000a90| 00 29 28 59 20 5a 29 0a | 00 29 c4 c4 c2 c4 c4 0a |.)(Y Z).|.)......|
|00000aa0| 00 2b 1f 0a 00 22 28 43 | 4f 4e 53 20 27 58 00 02 |.+..."(C|ONS 'X..|
|00000ab0| 29 0a 00 22 c4 c4 c4 c4 | c4 c2 c4 c4 c4 c4 c4 0a |).."....|........|
|00000ac0| 2a 20 28 53 45 54 46 20 | 4c 20 28 43 4f 4e 53 20 |* (SETF |L (CONS |
|00000ad0| 27 58 20 4c 29 29 00 11 | 1f 0a 28 58 20 59 20 5a |'X L))..|..(X Y Z|
|00000ae0| 29 00 13 28 53 45 54 46 | 20 4c 00 0c 29 0a 00 1a |)..(SETF| L..)...|
|00000af0| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c2 c4 c4 c4 c4 c4 |........|........|
|00000b00| c4 c4 c4 c4 0a 00 24 1f | 0a 00 21 28 58 20 59 20 |......$.|..!(X Y |
|00000b10| 5a 29 0a 23 14 00 00 00 | 10 01 04 27 03 00 00 00 |Z).#....|...'....|
|00000b20| 2e 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|00000b30| 45 58 50 4f 53 49 54 49 | 4f 4e 23 07 00 00 00 04 |EXPOSITI|ON#.....|
|00000b40| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 fb 01 00 |..EXPOSI|TION%...|
|00000b50| 00 0a 42 65 77 61 72 65 | 20 6f 66 20 74 68 65 20 |..Beware| of the |
|00000b60| 63 6f 6d 6d 6f 6e 20 65 | 72 72 6f 72 3a 0a 0a 41 |common e|rror:..A|
|00000b70| 20 70 72 6f 67 72 61 6d | 6d 65 72 20 75 73 65 73 | program|mer uses|
|00000b80| 20 61 20 73 79 6d 62 6f | 6c 20 76 61 6c 75 65 20 | a symbo|l value |
|00000b90| 61 73 20 61 6e 20 61 72 | 67 75 6d 65 6e 74 20 74 |as an ar|gument t|
|00000ba0| 6f 20 43 4f 4e 53 3a 0a | 0a 2a 20 28 43 4f 4e 53 |o CONS:.|.* (CONS|
|00000bb0| 20 27 58 20 4c 29 0a 0a | 54 68 65 20 70 72 6f 67 | 'X L)..|The prog|
|00000bc0| 72 61 6d 6d 65 72 20 74 | 68 69 6e 6b 73 20 74 68 |rammer t|hinks th|
|00000bd0| 65 20 76 61 6c 75 65 20 | 6f 66 20 4c 20 69 73 20 |e value |of L is |
|00000be0| 63 68 61 6e 67 65 64 2e | 00 02 52 65 6d 65 6d 62 |changed.|..Rememb|
|00000bf0| 65 72 20 74 68 61 74 0a | 79 6f 75 20 6d 75 73 74 |er that.|you must|
|00000c00| 20 75 73 65 20 53 45 54 | 46 20 74 6f 20 63 68 61 | use SET|F to cha|
|00000c10| 6e 67 65 20 74 68 65 20 | 76 61 6c 75 65 2e 00 02 |nge the |value...|
|00000c20| 53 69 6d 69 6c 61 72 6c | 79 2c 20 74 6f 20 74 61 |Similarl|y, to ta|
|00000c30| 6b 65 20 61 6e 0a 65 6c | 65 6d 65 6e 74 20 6f 66 |ke an.el|ement of|
|00000c40| 66 20 6f 66 20 61 20 6c | 69 73 74 2c 20 52 45 53 |f of a l|ist, RES|
|00000c50| 54 20 69 73 20 6e 6f 74 | 20 65 6e 6f 75 67 68 3b |T is not| enough;|
|00000c60| 20 53 45 54 46 20 6d 75 | 73 74 20 62 65 20 75 73 | SETF mu|st be us|
|00000c70| 65 64 2c 0a 74 6f 6f 3a | 0a 0a 52 69 67 68 74 00 |ed,.too:|..Right.|
|00000c80| 18 49 6e 63 6f 6d 70 6c | 65 74 65 20 69 66 20 4c |.Incompl|ete if L|
|00000c90| 20 69 73 20 74 6f 20 62 | 65 20 63 68 61 6e 67 65 | is to b|e change|
|00000ca0| 64 0a 0a 28 53 45 54 46 | 20 4c 20 28 43 4f 4e 53 |d..(SETF| L (CONS|
|00000cb0| 20 27 58 20 4c 29 29 00 | 09 28 43 4f 4e 53 20 27 | 'X L)).|.(CONS '|
|00000cc0| 58 20 4c 29 0a 0a 28 53 | 45 54 46 20 4c 20 28 52 |X L)..(S|ETF L (R|
|00000cd0| 45 53 54 20 4c 29 29 00 | 0c 28 52 45 53 54 20 4c |EST L)).|.(REST L|
|00000ce0| 29 0a 0a 53 65 65 20 74 | 68 65 20 66 6f 6c 6c 6f |)..See t|he follo|
|00000cf0| 77 69 6e 67 20 64 65 74 | 61 69 6c 73 20 73 6c 69 |wing det|ails sli|
|00000d00| 64 65 20 66 6f 72 20 61 | 6e 20 61 6c 74 65 72 6e |de for a|n altern|
|00000d10| 61 74 69 76 65 20 74 6f | 20 74 68 65 0a 53 45 54 |ative to| the.SET|
|00000d20| 46 2d 43 4f 4e 53 20 74 | 65 6d 70 6c 61 74 65 20 |F-CONS t|emplate |
|00000d30| 61 6e 64 20 74 68 65 20 | 53 45 54 46 2d 52 45 53 |and the |SETF-RES|
|00000d40| 54 20 74 65 6d 70 6c 61 | 74 65 2e 0a 23 15 00 00 |T templa|te..#...|
|00000d50| 00 10 01 07 05 53 4c 49 | 44 45 07 0a 45 58 50 4f |.....SLI|DE..EXPO|
|00000d60| 53 49 54 49 4f 4e 23 01 | 00 00 00 04 07 0a 45 58 |SITION#.|......EX|
|00000d70| 50 4f 53 49 54 49 4f 4e | 25 2e 01 00 00 0a 54 68 |POSITION|%.....Th|
|00000d80| 65 20 70 72 69 6d 69 74 | 69 76 65 20 50 55 53 48 |e primit|ive PUSH|
|00000d90| 20 61 64 64 73 20 61 6e | 20 65 6c 65 6d 65 6e 74 | adds an| element|
|00000da0| 20 74 6f 20 61 20 6c 69 | 73 74 3a 0a 0a 2a 20 28 | to a li|st:..* (|
|00000db0| 53 45 54 46 20 4c 20 27 | 28 59 20 5a 29 29 0a 28 |SETF L '|(Y Z)).(|
|00000dc0| 59 20 5a 29 0a 0a 2a 20 | 4c 0a 28 59 20 5a 29 00 |Y Z)..* |L.(Y Z).|
|00000dd0| 15 3b 4c 27 73 20 76 61 | 6c 75 65 20 69 73 20 28 |.;L's va|lue is (|
|00000de0| 59 20 5a 29 20 0a 0a 2a | 20 28 50 55 53 48 20 27 |Y Z) ..*| (PUSH '|
|00000df0| 58 20 4c 29 20 0a 28 58 | 20 59 20 5a 29 00 13 3b |X L) .(X| Y Z)..;|
|00000e00| 50 55 53 48 20 61 64 64 | 73 20 65 6c 65 6d 65 6e |PUSH add|s elemen|
|00000e10| 74 20 74 6f 20 66 72 6f | 6e 74 2e 0a 0a 2a 20 4c |t to fro|nt...* L|
|00000e20| 0a 28 58 20 59 20 5a 29 | 00 13 3b 4c 27 73 20 76 |.(X Y Z)|..;L's v|
|00000e30| 61 6c 75 65 20 77 61 73 | 20 63 68 61 6e 67 65 64 |alue was| changed|
|00000e40| 20 62 79 20 50 55 53 48 | 2e 0a 0a 4d 61 6e 79 20 | by PUSH|...Many |
|00000e50| 62 65 67 69 6e 6e 65 72 | 73 20 63 6f 6e 66 75 73 |beginner|s confus|
|00000e60| 65 20 43 4f 4e 53 20 61 | 6e 64 20 50 55 53 48 2c |e CONS a|nd PUSH,|
|00000e70| 20 74 68 69 6e 6b 69 6e | 67 20 74 68 61 74 20 43 | thinkin|g that C|
|00000e80| 4f 4e 53 20 72 65 73 65 | 74 73 20 61 0a 73 79 6d |ONS rese|ts a.sym|
|00000e90| 62 6f 6c 27 73 20 76 61 | 6c 75 65 2e 00 02 49 74 |bol's va|lue...It|
|00000ea0| 20 64 6f 65 73 20 6e 6f | 74 2e 0a 23 12 00 00 00 | does no|t..#....|
|00000eb0| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 07 |...'....|.'......|
|00000ec0| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000ed0| 4f 4e 23 02 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000ee0| 54 49 4f 4e 25 2a 01 00 | 00 0a 53 69 6d 69 6c 61 |TION%*..|..Simila|
|00000ef0| 72 6c 79 2c 20 50 4f 50 | 20 72 65 6d 6f 76 65 73 |rly, POP| removes|
|00000f00| 20 74 68 65 20 66 69 72 | 73 74 20 65 6c 65 6d 65 | the fir|st eleme|
|00000f10| 6e 74 20 66 72 6f 6d 20 | 61 20 6c 69 73 74 3a 0a |nt from |a list:.|
|00000f20| 0a 2a 20 28 53 45 54 46 | 20 4c 20 27 28 59 20 5a |.* (SETF| L '(Y Z|
|00000f30| 29 29 0a 28 59 20 5a 29 | 0a 0a 2a 20 4c 0a 28 59 |)).(Y Z)|..* L.(Y|
|00000f40| 20 5a 29 00 15 3b 4c 27 | 73 20 76 61 6c 75 65 20 | Z)..;L'|s value |
|00000f50| 69 73 20 28 59 20 5a 29 | 20 0a 0a 2a 20 28 50 4f |is (Y Z)| ..* (PO|
|00000f60| 50 20 4c 29 20 0a 59 00 | 19 3b 50 4f 50 20 72 65 |P L) .Y.|.;POP re|
|00000f70| 6d 6f 76 65 73 20 65 6c | 65 6d 65 6e 74 20 66 72 |moves el|ement fr|
|00000f80| 6f 6d 20 66 72 6f 6e 74 | 2e 0a 0a 2a 20 4c 0a 28 |om front|...* L.(|
|00000f90| 5a 29 00 17 3b 4c 27 73 | 20 76 61 6c 75 65 20 77 |Z)..;L's| value w|
|00000fa0| 61 73 20 63 68 61 6e 67 | 65 64 20 62 79 20 50 4f |as chang|ed by PO|
|00000fb0| 50 2e 0a 0a 4d 61 6e 79 | 20 62 65 67 69 6e 6e 65 |P...Many| beginne|
|00000fc0| 72 73 20 63 6f 6e 66 75 | 73 65 20 52 45 53 54 20 |rs confu|se REST |
|00000fd0| 61 6e 64 20 50 4f 50 2c | 20 74 68 69 6e 6b 69 6e |and POP,| thinkin|
|00000fe0| 67 20 74 68 61 74 20 52 | 45 53 54 20 72 65 73 65 |g that R|EST rese|
|00000ff0| 74 73 20 61 0a 73 79 6d | 62 6f 6c 27 73 20 76 61 |ts a.sym|bol's va|
|00001000| 6c 75 65 2e 00 02 49 74 | 20 64 6f 65 73 20 6e 6f |lue...It| does no|
|00001010| 74 2e 0a 23 12 00 00 00 | 10 01 04 27 03 00 00 00 |t..#....|...'....|
|00001020| 2e 27 05 00 00 00 2e 27 | 02 00 00 00 27 03 00 00 |.'.....'|....'...|
|00001030| 00 2e 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00001040| 08 45 58 41 4d 50 4c 45 | 53 23 08 00 00 00 04 07 |.EXAMPLE|S#......|
|00001050| 0d 45 58 41 4d 50 4c 45 | 2d 47 52 4f 55 50 26 8b |.EXAMPLE|-GROUP&.|
|00001060| 0a 41 73 73 75 6d 65 20 | 54 48 52 45 45 27 73 20 |.Assume |THREE's |
|00001070| 76 61 6c 75 65 20 69 73 | 20 42 4f 58 2d 43 3b 0a |value is| BOX-C;.|
|00001080| 61 73 73 75 6d 65 20 4f | 42 53 54 41 43 4c 45 53 |assume O|BSTACLES|
|00001090| 27 53 20 76 61 6c 75 65 | 20 69 73 20 28 42 52 49 |'S value| is (BRI|
|000010a0| 43 4b 2d 44 20 50 59 52 | 41 4d 49 44 2d 46 29 2e |CK-D PYR|AMID-F).|
|000010b0| 0a 0a 28 53 45 54 46 20 | 54 48 52 45 45 20 27 42 |..(SETF |THREE 'B|
|000010c0| 4f 58 2d 43 29 0a 28 53 | 45 54 46 20 4f 42 53 54 |OX-C).(S|ETF OBST|
|000010d0| 41 43 4c 45 53 20 27 28 | 42 52 49 43 4b 2d 44 20 |ACLES '(|BRICK-D |
|000010e0| 50 59 52 41 4d 49 44 2d | 46 29 29 23 06 00 00 00 |PYRAMID-|F))#....|
|000010f0| 10 01 26 18 2a 20 28 43 | 4f 4e 53 20 54 48 52 45 |..&.* (C|ONS THRE|
|00001100| 45 20 4f 42 53 54 41 43 | 4c 45 53 29 23 01 00 00 |E OBSTAC|LES)#...|
|00001110| 00 10 01 26 19 28 42 4f | 58 2d 43 20 42 52 49 43 |...&.(BO|X-C BRIC|
|00001120| 4b 2d 44 20 50 59 52 41 | 4d 49 44 2d 46 29 23 01 |K-D PYRA|MID-F)#.|
|00001130| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|00001140| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 0b 2a 20 4f |MPLE-GRO|UP.&.* O|
|00001150| 42 53 54 41 43 4c 45 53 | 23 01 00 00 00 10 01 26 |BSTACLES|#......&|
|00001160| 3a 28 42 52 49 43 4b 2d | 44 20 50 59 52 41 4d 49 |:(BRICK-|D PYRAMI|
|00001170| 44 2d 46 29 00 0e 3b 43 | 4f 4e 53 20 64 6f 65 73 |D-F)..;C|ONS does|
|00001180| 20 6e 6f 74 20 63 68 61 | 6e 67 65 20 73 79 6d 62 | not cha|nge symb|
|00001190| 6f 6c 27 73 20 76 61 6c | 75 65 2e 23 01 00 00 00 |ol's val|ue.#....|
|000011a0| 10 01 27 04 00 00 00 2e | 07 0d 45 58 41 4d 50 4c |..'.....|..EXAMPL|
|000011b0| 45 2d 47 52 4f 55 50 04 | 26 29 2a 20 28 53 45 54 |E-GROUP.|&)* (SET|
|000011c0| 46 20 4f 42 53 54 41 43 | 4c 45 53 20 28 43 4f 4e |F OBSTAC|LES (CON|
|000011d0| 53 20 54 48 52 45 45 20 | 4f 42 53 54 41 43 4c 45 |S THREE |OBSTACLE|
|000011e0| 53 29 29 23 01 00 00 00 | 10 01 26 19 28 42 4f 58 |S))#....|..&.(BOX|
|000011f0| 2d 43 20 42 52 49 43 4b | 2d 44 20 50 59 52 41 4d |-C BRICK|-D PYRAM|
|00001200| 49 44 2d 46 29 23 01 00 | 00 00 10 01 27 04 00 00 |ID-F)#..|....'...|
|00001210| 00 2e 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|00001220| 50 04 26 0b 2a 20 4f 42 | 53 54 41 43 4c 45 53 23 |P.&.* OB|STACLES#|
|00001230| 01 00 00 00 10 01 26 6b | 28 42 4f 58 2d 43 20 42 |......&k|(BOX-C B|
|00001240| 52 49 43 4b 2d 44 20 50 | 59 52 41 4d 49 44 2d 46 |RICK-D P|YRAMID-F|
|00001250| 29 00 08 3b 53 45 54 46 | 20 64 6f 65 73 20 63 68 |)..;SETF| does ch|
|00001260| 61 6e 67 65 20 73 79 6d | 62 6f 6c 27 73 20 76 61 |ange sym|bol's va|
|00001270| 6c 75 65 2c 0a 00 21 3b | 6f 6c 64 20 76 61 6c 75 |lue,..!;|old valu|
|00001280| 65 20 69 6e 76 6f 6c 76 | 65 64 20 69 6e 20 6d 61 |e involv|ed in ma|
|00001290| 6b 69 6e 67 0a 00 21 3b | 6e 65 77 20 76 61 6c 75 |king..!;|new valu|
|000012a0| 65 2e 0a 23 04 00 00 00 | 10 01 27 04 00 00 00 2e |e..#....|..'.....|
|000012b0| 04 10 04 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|000012c0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 09 00 00 |..EXPOSI|TION#...|
|000012d0| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 25 11 |....EXPO|SITION%.|
|000012e0| 01 00 00 0a 4e 6f 74 65 | 20 74 68 61 74 20 43 4f |....Note| that CO|
|000012f0| 4e 53 20 63 61 6e 20 70 | 75 74 20 74 6f 67 65 74 |NS can p|ut toget|
|00001300| 68 65 72 20 77 68 61 74 | 20 46 49 52 53 54 20 61 |her what| FIRST a|
|00001310| 6e 64 20 52 45 53 54 20 | 74 65 61 72 20 61 70 61 |nd REST |tear apa|
|00001320| 72 74 2e 20 0a 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |rt. .The| followi|
|00001330| 6e 67 2c 20 74 68 65 6e | 2c 20 61 72 65 20 74 68 |ng, then|, are th|
|00001340| 65 20 73 61 6d 65 2c 20 | 61 74 20 6c 65 61 73 74 |e same, |at least|
|00001350| 20 66 6f 72 20 6e 6f 77 | 3a 0a 0a 3c 6c 69 73 74 | for now|:..<list|
|00001360| 3e 20 69 73 20 72 6f 75 | 67 68 6c 79 20 6c 69 6b |> is rou|ghly lik|
|00001370| 65 20 28 43 4f 4e 53 20 | 28 46 49 52 53 54 20 3c |e (CONS |(FIRST <|
|00001380| 6c 69 73 74 3e 29 20 28 | 52 45 53 54 20 3c 6c 69 |list>) (|REST <li|
|00001390| 73 74 3e 29 29 0a 0a 49 | 6e 20 61 20 73 75 62 74 |st>))..I|n a subt|
|000013a0| 6c 65 20 77 61 79 2c 20 | 74 68 65 79 20 61 72 65 |le way, |they are|
|000013b0| 20 6e 6f 74 20 65 78 61 | 63 74 6c 79 20 74 68 65 | not exa|ctly the|
|000013c0| 20 73 61 6d 65 2c 20 62 | 75 74 20 74 68 69 73 20 | same, b|ut this |
|000013d0| 69 73 20 6e 6f 74 0a 74 | 68 65 20 70 6c 61 63 65 |is not.t|he place|
|000013e0| 20 74 6f 20 75 6e 64 65 | 72 73 74 61 6e 64 20 77 | to unde|rstand w|
|000013f0| 68 79 2e 0a 23 09 00 00 | 00 10 01 04 27 03 00 00 |hy..#...|....'...|
|00001400| 00 2e 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00001410| 08 50 52 41 43 54 49 43 | 45 23 0a 00 00 00 07 05 |.PRACTIC|E#......|
|00001420| 46 4f 52 4d 53 0b 01 01 | 54 04 10 02 26 40 0a 54 |FORMS...|T...&@.T|
|00001430| 72 79 20 61 20 66 65 77 | 20 65 78 61 6d 70 6c 65 |ry a few| example|
|00001440| 73 20 69 6e 76 6f 6c 76 | 69 6e 67 20 43 4f 4e 53 |s involv|ing CONS|
|00001450| 2c 20 61 6e 64 20 70 65 | 72 68 61 70 73 20 46 49 |, and pe|rhaps FI|
|00001460| 52 53 54 20 61 6e 64 20 | 52 45 53 54 2e 0a 23 03 |RST and |REST..#.|
|00001470| 00 00 00 10 01 27 05 00 | 00 00 2e 07 05 53 4c 49 |.....'..|.....SLI|
|00001480| 44 45 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 23 0b |DE..EXPO|SITION#.|
|00001490| 00 00 00 04 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |......EX|POSITION|
|000014a0| 26 a3 0a 52 65 6d 65 6d | 62 65 72 20 2e 2e 2e 0a |&..Remem|ber ....|
|000014b0| 0a 6f 00 04 49 46 20 79 | 6f 75 20 77 61 6e 74 20 |.o..IF y|ou want |
|000014c0| 74 6f 20 61 64 64 20 61 | 20 6e 65 77 20 65 6c 65 |to add a| new ele|
|000014d0| 6d 65 6e 74 20 74 6f 20 | 74 68 65 20 66 72 6f 6e |ment to |the fron|
|000014e0| 74 20 6f 66 20 61 20 6c | 69 73 74 2c 0a 00 05 54 |t of a l|ist,...T|
|000014f0| 48 45 4e 20 75 73 65 20 | 43 4f 4e 53 2e 0a 0a 6f |HEN use |CONS...o|
|00001500| 00 04 49 46 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |..IF you| want to|
|00001510| 20 63 68 61 6e 67 65 20 | 61 20 73 79 6d 62 6f 6c | change |a symbol|
|00001520| 27 73 20 76 61 6c 75 65 | 2c 0a 00 05 54 48 45 4e |'s value|,...THEN|
|00001530| 20 79 6f 75 20 6d 75 73 | 74 20 75 73 65 20 53 45 | you mus|t use SE|
|00001540| 54 46 2e 0a 0a 23 0a 00 | 00 00 10 01 04 27 03 00 |TF...#..|.....'..|
|00001550| 00 00 2e 27 05 00 00 00 | 2e 27 0b 00 00 00 04 27 |...'....|.'.....'|
|00001560| 05 00 00 00 2e 04 10 02 | 04 10 03 36 0b 01 04 53 |........|...6...S|
|00001570| 45 54 46 07 15 2a 4c 41 | 53 54 2d 4c 4f 41 44 45 |ETF..*LA|ST-LOADE|
|00001580| 44 2d 4c 45 53 53 4f 4e | 53 2a 0b 01 05 51 55 4f |D-LESSON|S*...QUO|
|00001590| 54 45 07 07 49 4e 53 45 | 52 54 32 04 10 01 04 10 |TE..INSE|RT2.....|
|000015a0| 02 04 10 03 36 40 | |....6@ | |
+--------+-------------------------+-------------------------+--------+--------+