home *** CD-ROM | disk | FTP | other *** search
Unknown | 1984-10-20 | 8.2 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 0b 01 04 43 4f |SON...QU|OTE...CO|
|00000080| 4e 44 04 10 02 04 10 02 | 0b 01 05 51 55 4f 54 45 |ND......|...QUOTE|
|00000090| 07 06 4c 45 53 53 4f 4e | 0b 01 04 43 4f 4e 44 0b |..LESSON|...COND.|
|000000a0| 01 04 4e 41 4d 45 0b 01 | 04 43 4f 4e 44 04 10 01 |..NAME..|.COND...|
|000000b0| 07 04 4e 45 58 54 07 06 | 41 4e 44 2d 4f 52 04 10 |..NEXT..|AND-OR..|
|000000c0| 01 07 08 50 52 45 56 49 | 4f 55 53 07 09 54 4f 2d |...PREVI|OUS..TO-|
|000000d0| 42 52 41 4e 43 48 04 10 | 01 07 0b 4c 45 53 53 4f |BRANCH..|...LESSO|
|000000e0| 4e 2d 4e 41 4d 45 26 13 | 42 72 61 6e 63 68 69 6e |N-NAME&.|Branchin|
|000000f0| 67 20 77 69 74 68 20 43 | 4f 4e 44 04 10 01 04 10 |g with C|OND.....|
|00000100| 08 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00000110| 54 49 4f 4e 23 01 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00000120| 53 49 54 49 4f 4e 25 39 | 01 00 00 0a 43 4f 4e 44 |SITION%9|....COND|
|00000130| 20 69 73 20 61 20 67 65 | 6e 65 72 61 6c 20 62 72 | is a ge|neral br|
|00000140| 61 6e 63 68 69 6e 67 20 | 70 72 69 6d 69 74 69 76 |anching |primitiv|
|00000150| 65 2e 00 02 48 65 72 65 | 20 69 73 20 74 68 65 20 |e...Here| is the |
|00000160| 74 65 6d 70 6c 61 74 65 | 3a 0a 0a 28 43 4f 4e 44 |template|:..(COND|
|00000170| 20 28 3c 74 72 69 67 67 | 65 72 20 31 3e 20 3c 76 | (<trigg|er 1> <v|
|00000180| 61 6c 75 65 20 31 3e 29 | 0a 00 06 28 3c 74 72 69 |alue 1>)|...(<tri|
|00000190| 67 67 65 72 20 32 3e 20 | 3c 76 61 6c 75 65 20 32 |gger 2> |<value 2|
|000001a0| 3e 29 0a 00 06 2e 2e 2e | 0a 00 06 28 3c 74 72 69 |>)......|...(<tri|
|000001b0| 67 67 65 72 20 6e 3e 20 | 3c 76 61 6c 75 65 20 6e |gger n> |<value n|
|000001c0| 3e 29 29 0a 0a 54 68 65 | 20 74 72 69 67 67 65 72 |>))..The| trigger|
|000001d0| 73 20 61 72 65 20 74 72 | 69 65 64 20 6f 6e 65 20 |s are tr|ied one |
|000001e0| 61 66 74 65 72 20 74 68 | 65 20 6f 74 68 65 72 20 |after th|e other |
|000001f0| 75 6e 74 69 6c 20 6f 6e | 65 20 65 76 61 6c 75 61 |until on|e evalua|
|00000200| 74 65 73 20 74 6f 0a 6e | 6f 6e 4e 49 4c 2e 00 02 |tes to.n|onNIL...|
|00000210| 54 68 65 6e 20 74 68 65 | 20 63 6f 72 72 65 73 70 |Then the| corresp|
|00000220| 6f 6e 64 69 6e 67 20 76 | 61 6c 75 65 20 66 6f 72 |onding v|alue for|
|00000230| 6d 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |m is eva|luated a|
|00000240| 6e 64 0a 62 65 63 6f 6d | 65 73 20 74 68 65 20 76 |nd.becom|es the v|
|00000250| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 43 4f 4e 44 |alue of |the COND|
|00000260| 2e 00 02 0a 23 0c 00 00 | 00 10 01 04 27 03 00 00 |....#...|....'...|
|00000270| 00 2e 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00000280| 0a 45 58 50 4f 53 49 54 | 49 4f 4e 23 02 00 00 00 |.EXPOSIT|ION#....|
|00000290| 04 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 25 08 02 |...EXPOS|ITION%..|
|000002a0| 00 00 0a 48 65 72 65 20 | 69 73 20 61 6e 20 65 78 |...Here |is an ex|
|000002b0| 61 6d 70 6c 65 20 6f 66 | 20 61 20 43 4f 4e 44 20 |ample of| a COND |
|000002c0| 66 6f 72 6d 3b 20 6e 6f | 74 65 20 74 68 61 74 20 |form; no|te that |
|000002d0| 54 20 69 73 20 75 73 65 | 64 20 61 73 20 74 68 65 |T is use|d as the|
|000002e0| 0a 6c 61 73 74 20 74 72 | 69 67 67 65 72 3a 0a 0a |.last tr|igger:..|
|000002f0| 28 43 4f 4e 44 20 28 28 | 3d 20 4e 20 30 29 20 31 |(COND ((|= N 0) 1|
|00000300| 29 00 0a 3b 52 65 74 75 | 72 6e 20 31 20 69 66 20 |)..;Retu|rn 1 if |
|00000310| 4e 27 73 20 76 61 6c 75 | 65 20 69 73 20 30 2e 0a |N's valu|e is 0..|
|00000320| 00 06 28 28 3d 20 4e 20 | 31 29 20 31 29 00 0a 3b |..((= N |1) 1)..;|
|00000330| 52 65 74 75 72 6e 20 31 | 20 69 66 20 4e 27 73 20 |Return 1| if N's |
|00000340| 76 61 6c 75 65 20 69 73 | 20 31 20 61 73 20 77 65 |value is| 1 as we|
|00000350| 6c 6c 2e 0a 00 06 28 54 | 20 28 52 41 42 42 49 54 |ll....(T| (RABBIT|
|00000360| 53 20 4e 29 29 29 00 05 | 3b 4f 74 68 65 72 77 69 |S N)))..|;Otherwi|
|00000370| 73 65 20 75 73 65 20 74 | 68 65 20 52 41 42 42 49 |se use t|he RABBI|
|00000380| 54 53 20 70 72 6f 63 65 | 64 75 72 65 0a 00 1b 3b |TS proce|dure...;|
|00000390| 6f 6e 20 4e 27 73 20 76 | 61 6c 75 65 2e 0a 0a 47 |on N's v|alue...G|
|000003a0| 6f 6f 64 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |ood prog|rammers |
|000003b0| 75 73 75 61 6c 6c 79 20 | 75 73 65 20 54 20 61 73 |usually |use T as|
|000003c0| 20 74 68 65 20 6c 61 73 | 74 20 74 72 69 67 67 65 | the las|t trigge|
|000003d0| 72 20 69 6e 20 61 6c 6c | 20 43 4f 4e 44 0a 66 6f |r in all| COND.fo|
|000003e0| 72 6d 73 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |rms so t|hat the |
|000003f0| 74 65 73 74 69 6e 67 20 | 6e 65 76 65 72 20 72 75 |testing |never ru|
|00000400| 6e 73 20 6f 66 66 20 74 | 68 65 20 65 6e 64 3a 0a |ns off t|he end:.|
|00000410| 0a 28 43 4f 4e 44 20 28 | 3c 74 72 69 67 67 65 72 |.(COND (|<trigger|
|00000420| 20 31 3e 20 3c 76 61 6c | 75 65 20 31 3e 29 0a 00 | 1> <val|ue 1>)..|
|00000430| 06 28 3c 74 72 69 67 67 | 65 72 20 32 3e 20 3c 76 |.(<trigg|er 2> <v|
|00000440| 61 6c 75 65 20 32 3e 29 | 0a 00 06 2e 2e 2e 0a 00 |alue 2>)|........|
|00000450| 06 28 54 20 3c 76 61 6c | 75 65 20 6e 3e 29 29 0a |.(T <val|ue n>)).|
|00000460| 0a 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |.If ther|e is no |
|00000470| 54 20 61 6e 64 20 43 4f | 4e 44 20 64 6f 65 73 20 |T and CO|ND does |
|00000480| 72 75 6e 20 6f 66 66 20 | 74 68 65 20 65 6e 64 2c |run off |the end,|
|00000490| 20 74 68 65 20 43 4f 4e | 44 27 73 20 76 61 6c 75 | the CON|D's valu|
|000004a0| 65 0a 69 73 20 4e 49 4c | 2e 0a 23 14 00 00 00 10 |e.is NIL|..#.....|
|000004b0| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 07 05 |..'.....|'.......|
|000004c0| 53 4c 49 44 45 07 0a 45 | 58 50 4f 53 49 54 49 4f |SLIDE..E|XPOSITIO|
|000004d0| 4e 23 03 00 00 00 04 07 | 0a 45 58 50 4f 53 49 54 |N#......|.EXPOSIT|
|000004e0| 49 4f 4e 26 84 0a 43 4f | 4e 44 20 69 73 20 68 61 |ION&..CO|ND is ha|
|000004f0| 72 64 65 72 20 74 6f 20 | 77 72 69 74 65 20 61 6e |rder to |write an|
|00000500| 64 20 72 65 61 64 20 74 | 68 61 6e 20 57 48 45 4e |d read t|han WHEN|
|00000510| 2c 20 55 4e 4c 45 53 53 | 2c 20 61 6e 64 20 49 46 |, UNLESS|, and IF|
|00000520| 2e 00 02 55 73 65 0a 43 | 4f 4e 44 20 6f 6e 6c 79 |...Use.C|OND only|
|00000530| 20 77 68 65 6e 20 6e 65 | 69 74 68 65 72 20 57 48 | when ne|ither WH|
|00000540| 45 4e 2c 20 6e 6f 72 20 | 55 4e 4c 45 53 53 2c 20 |EN, nor |UNLESS, |
|00000550| 6e 6f 72 20 49 46 20 69 | 73 20 67 6f 6f 64 20 65 |nor IF i|s good e|
|00000560| 6e 6f 75 67 68 2e 00 02 | 0a 23 04 00 00 00 10 01 |nough...|.#......|
|00000570| 04 27 03 00 00 00 2e 27 | 05 00 00 00 2e 07 05 53 |.'.....'|.......S|
|00000580| 4c 49 44 45 07 08 45 58 | 41 4d 50 4c 45 53 23 04 |LIDE..EX|AMPLES#.|
|00000590| 00 00 00 04 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|000005a0| 4f 55 50 26 22 0a 41 73 | 73 75 6d 65 20 54 45 4d |OUP&".As|sume TEM|
|000005b0| 50 45 52 41 54 55 52 45 | 27 73 20 76 61 6c 75 65 |PERATURE|'s value|
|000005c0| 20 69 73 20 39 35 2e 23 | 02 00 00 00 10 01 26 51 | is 95.#|......&Q|
|000005d0| 2a 20 28 43 4f 4e 44 20 | 28 28 3e 20 54 45 4d 50 |* (COND |((> TEMP|
|000005e0| 45 52 41 54 55 52 45 20 | 38 35 29 20 27 54 4f 4f |ERATURE |85) 'TOO|
|000005f0| 2d 48 4f 54 29 0a 00 08 | 28 28 3c 20 54 45 4d 50 |-HOT)...|((< TEMP|
|00000600| 45 52 41 54 55 52 45 20 | 35 30 29 20 27 54 4f 4f |ERATURE |50) 'TOO|
|00000610| 2d 43 4f 4c 44 29 0a 00 | 08 28 54 20 27 4f 4b 29 |-COLD)..|.(T 'OK)|
|00000620| 29 23 03 00 00 00 10 01 | 26 27 54 4f 4f 2d 48 4f |)#......|&'TOO-HO|
|00000630| 54 00 16 3b 28 3e 20 54 | 45 4d 50 45 52 41 54 55 |T..;(> T|EMPERATU|
|00000640| 52 45 20 38 35 29 20 72 | 65 74 75 72 6e 73 20 54 |RE 85) r|eturns T|
|00000650| 2e 23 01 00 00 00 10 01 | 27 04 00 00 00 2e 07 0d |.#......|'.......|
|00000660| 45 58 41 4d 50 4c 45 2d | 47 52 4f 55 50 26 21 41 |EXAMPLE-|GROUP&!A|
|00000670| 73 73 75 6d 65 20 54 45 | 4d 50 45 52 41 54 55 52 |ssume TE|MPERATUR|
|00000680| 45 27 73 20 76 61 6c 75 | 65 20 69 73 20 37 32 2e |E's valu|e is 72.|
|00000690| 23 01 00 00 00 10 01 26 | 51 2a 20 28 43 4f 4e 44 |#......&|Q* (COND|
|000006a0| 20 28 28 3e 20 54 45 4d | 50 45 52 41 54 55 52 45 | ((> TEM|PERATURE|
|000006b0| 20 38 35 29 20 27 54 4f | 4f 2d 48 4f 54 29 0a 00 | 85) 'TO|O-HOT)..|
|000006c0| 08 28 28 3c 20 54 45 4d | 50 45 52 41 54 55 52 45 |.((< TEM|PERATURE|
|000006d0| 20 35 30 29 20 27 54 4f | 4f 2d 43 4f 4c 44 29 0a | 50) 'TO|O-COLD).|
|000006e0| 00 08 28 54 20 27 4f 4b | 29 29 23 03 00 00 00 10 |..(T 'OK|))#.....|
|000006f0| 01 26 79 4f 4b 00 1b 3b | 28 3e 20 54 45 4d 50 45 |.&yOK..;|(> TEMPE|
|00000700| 52 41 54 55 52 45 20 38 | 35 29 20 72 65 74 75 72 |RATURE 8|5) retur|
|00000710| 6e 73 20 4e 49 4c 2c 20 | 61 6e 64 0a 00 1d 3b 28 |ns NIL, |and...;(|
|00000720| 3c 20 54 45 4d 50 45 52 | 41 54 55 52 45 20 35 30 |< TEMPER|ATURE 50|
|00000730| 29 20 72 65 74 75 72 6e | 73 20 4e 49 4c 2c 20 73 |) return|s NIL, s|
|00000740| 6f 0a 00 1d 3b 54 20 69 | 73 20 74 68 65 20 66 69 |o...;T i|s the fi|
|00000750| 72 73 74 20 74 72 69 67 | 67 65 72 20 74 68 61 74 |rst trig|ger that|
|00000760| 20 69 73 20 6e 6f 6e 4e | 49 4c 2e 0a 23 04 00 00 | is nonN|IL..#...|
|00000770| 00 10 01 27 04 00 00 00 | 2e 04 10 02 27 05 00 00 |...'....|....'...|
|00000780| 00 2e 07 05 53 4c 49 44 | 45 07 0a 45 58 50 4f 53 |....SLID|E..EXPOS|
|00000790| 49 54 49 4f 4e 23 05 00 | 00 00 04 07 0a 45 58 50 |ITION#..|.....EXP|
|000007a0| 4f 53 49 54 49 4f 4e 25 | bc 01 00 00 0a 54 68 65 |OSITION%|.....The|
|000007b0| 20 74 77 6f 2d 66 6f 72 | 6d 2c 20 28 3c 74 72 69 | two-for|m, (<tri|
|000007c0| 67 67 65 72 3e 20 3c 76 | 61 6c 75 65 3e 29 20 63 |gger> <v|alue>) c|
|000007d0| 6f 6d 62 69 6e 61 74 69 | 6f 6e 20 69 73 20 63 61 |ombinati|on is ca|
|000007e0| 6c 6c 65 64 20 61 20 43 | 4c 41 55 53 45 2e 20 0a |lled a C|LAUSE. .|
|000007f0| 49 6e 20 67 65 6e 65 72 | 61 6c 2c 20 63 6c 61 75 |In gener|al, clau|
|00000800| 73 65 73 20 6d 61 79 20 | 68 61 76 65 20 6f 6e 65 |ses may |have one|
|00000810| 20 66 6f 72 6d 20 6f 72 | 20 6d 61 6e 79 20 66 6f | form or| many fo|
|00000820| 72 6d 73 3a 0a 0a 6f 00 | 04 49 66 20 74 68 65 72 |rms:..o.|.If ther|
|00000830| 65 20 69 73 20 6a 75 73 | 74 20 6f 6e 65 20 66 6f |e is jus|t one fo|
|00000840| 72 6d 2c 20 74 68 65 20 | 74 72 69 67 67 65 72 2c |rm, the |trigger,|
|00000850| 20 74 68 65 6e 20 74 68 | 65 20 74 72 69 67 67 65 | then th|e trigge|
|00000860| 72 0a 00 05 66 6f 72 6d | 20 64 6f 75 62 6c 65 73 |r...form| doubles|
|00000870| 20 61 73 20 74 68 65 20 | 76 61 6c 75 65 20 66 6f | as the |value fo|
|00000880| 72 6d 2e 0a 0a 6f 00 04 | 49 66 20 74 68 65 72 65 |rm...o..|If there|
|00000890| 20 61 72 65 20 6d 6f 72 | 65 20 74 68 61 6e 20 74 | are mor|e than t|
|000008a0| 77 6f 20 66 6f 72 6d 73 | 2c 20 74 68 65 6e 20 74 |wo forms|, then t|
|000008b0| 68 65 20 66 6f 72 6d 73 | 20 62 65 74 77 65 65 6e |he forms| between|
|000008c0| 20 74 68 65 0a 00 05 74 | 72 69 67 67 65 72 20 66 | the...t|rigger f|
|000008d0| 6f 72 6d 20 61 6e 64 20 | 74 68 65 20 76 61 6c 75 |orm and |the valu|
|000008e0| 65 20 66 6f 72 6d 20 61 | 72 65 20 65 76 61 6c 75 |e form a|re evalu|
|000008f0| 61 74 65 64 20 6f 6e 6c | 79 20 66 6f 72 0a 00 05 |ated onl|y for...|
|00000900| 77 68 61 74 65 76 65 72 | 20 73 69 64 65 20 65 66 |whatever| side ef|
|00000910| 66 65 63 74 73 20 74 68 | 65 79 20 6d 61 79 20 68 |fects th|ey may h|
|00000920| 61 76 65 2e 0a 0a 53 65 | 65 20 74 68 65 20 66 6f |ave...Se|e the fo|
|00000930| 6c 6c 6f 77 69 6e 67 20 | 64 65 74 61 69 6c 73 20 |llowing |details |
|00000940| 73 6c 69 64 65 20 74 6f | 20 73 65 65 20 68 6f 77 |slide to| see how|
|00000950| 20 49 46 20 69 73 20 72 | 65 6c 61 74 65 64 20 74 | IF is r|elated t|
|00000960| 6f 20 43 4f 4e 44 2e 0a | 23 0d 00 00 00 10 01 07 |o COND..|#.......|
|00000970| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000980| 4f 4e 23 01 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000990| 54 49 4f 4e 25 7e 01 00 | 00 0a 43 4f 4e 44 20 69 |TION%~..|..COND i|
|000009a0| 73 20 6d 6f 72 65 20 67 | 65 6e 65 72 61 6c 20 74 |s more g|eneral t|
|000009b0| 68 61 6e 20 49 46 3b 20 | 69 74 20 69 73 20 65 61 |han IF; |it is ea|
|000009c0| 73 79 20 74 6f 20 73 75 | 62 73 74 69 74 75 74 65 |sy to su|bstitute|
|000009d0| 20 43 4f 4e 44 0a 66 6f | 72 6d 73 20 66 6f 72 20 | COND.fo|rms for |
|000009e0| 49 46 20 66 6f 72 6d 73 | 3a 0a 0a 28 49 46 20 3c |IF forms|:..(IF <|
|000009f0| 74 72 69 67 67 65 72 3e | 20 3c 76 61 6c 75 65 20 |trigger>| <value |
|00000a00| 69 66 20 74 72 69 67 67 | 65 72 20 6e 6f 6e 4e 49 |if trigg|er nonNI|
|00000a10| 4c 3e 20 3c 76 61 6c 75 | 65 20 69 66 20 74 72 69 |L> <valu|e if tri|
|00000a20| 67 67 65 72 20 4e 49 4c | 3e 0a 0a 69 73 20 65 71 |gger NIL|>..is eq|
|00000a30| 75 69 76 61 6c 65 6e 74 | 20 74 6f 0a 0a 28 43 4f |uivalent| to..(CO|
|00000a40| 4e 44 20 28 3c 74 72 69 | 67 67 65 72 3e 20 3c 76 |ND (<tri|gger> <v|
|00000a50| 61 6c 75 65 20 69 66 20 | 74 72 69 67 67 65 72 20 |alue if |trigger |
|00000a60| 6e 6f 6e 4e 49 4c 3e 29 | 0a 00 06 28 54 20 3c 76 |nonNIL>)|...(T <v|
|00000a70| 61 6c 75 65 20 69 66 20 | 74 72 69 67 67 65 72 20 |alue if |trigger |
|00000a80| 4e 49 4c 3e 29 29 29 0a | 0a 46 6f 72 20 65 78 61 |NIL>))).|.For exa|
|00000a90| 6d 70 6c 65 2c 0a 0a 2a | 20 28 49 46 20 28 4e 55 |mple,..*| (IF (NU|
|00000aa0| 4c 4c 20 4c 29 20 30 20 | 28 2b 20 31 20 28 4c 45 |LL L) 0 |(+ 1 (LE|
|00000ab0| 4e 47 54 48 20 28 52 45 | 53 54 20 4c 29 29 29 29 |NGTH (RE|ST L))))|
|00000ac0| 0a 0a 61 6c 77 61 79 73 | 20 67 69 76 65 73 20 74 |..always| gives t|
|00000ad0| 68 65 20 73 61 6d 65 20 | 72 65 73 75 6c 74 20 61 |he same |result a|
|00000ae0| 73 0a 0a 2a 20 28 43 4f | 4e 44 20 28 28 4e 55 4c |s..* (CO|ND ((NUL|
|00000af0| 4c 20 4c 29 20 30 29 0a | 00 08 28 54 20 28 2b 20 |L L) 0).|..(T (+ |
|00000b00| 31 20 28 4c 45 4e 47 54 | 48 20 28 52 45 53 54 20 |1 (LENGT|H (REST |
|00000b10| 4c 29 29 29 29 29 0a 23 | 14 00 00 00 10 01 04 27 |L))))).#|.......'|
|00000b20| 03 00 00 00 2e 27 05 00 | 00 00 2e 27 01 00 00 00 |.....'..|...'....|
|00000b30| 27 03 00 00 00 2e 27 05 | 00 00 00 2e 07 05 53 4c |'.....'.|......SL|
|00000b40| 49 44 45 07 08 50 52 41 | 43 54 49 43 45 23 06 00 |IDE..PRA|CTICE#..|
|00000b50| 00 00 07 05 46 4f 52 4d | 53 0b 01 01 54 04 10 02 |....FORM|S...T...|
|00000b60| 26 24 0a 54 72 79 20 61 | 20 66 65 77 20 65 78 61 |&$.Try a| few exa|
|00000b70| 6d 70 6c 65 73 20 69 6e | 76 6f 6c 76 69 6e 67 20 |mples in|volving |
|00000b80| 43 4f 4e 44 2e 0a 23 03 | 00 00 00 10 01 27 05 00 |COND..#.|.....'..|
|00000b90| 00 00 2e 07 05 53 4c 49 | 44 45 07 0a 45 58 50 4f |.....SLI|DE..EXPO|
|00000ba0| 53 49 54 49 4f 4e 23 07 | 00 00 00 04 07 0a 45 58 |SITION#.|......EX|
|00000bb0| 50 4f 53 49 54 49 4f 4e | 25 2d 01 00 00 0a 52 65 |POSITION|%-....Re|
|00000bc0| 6d 65 6d 62 65 72 20 2e | 2e 2e 0a 0a 6f 00 04 49 |member .|....o..I|
|00000bd0| 46 20 74 68 65 72 65 20 | 69 73 20 74 6f 20 62 65 |F there |is to be|
|00000be0| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 74 | more th|an one t|
|00000bf0| 72 69 67 67 65 72 20 66 | 6f 72 6d 2c 0a 00 05 54 |rigger f|orm,...T|
|00000c00| 48 45 4e 20 75 73 65 20 | 43 4f 4e 44 2c 20 0a 00 |HEN use |COND, ..|
|00000c10| 05 55 53 49 4e 47 20 74 | 68 65 20 66 6f 6c 6c 6f |.USING t|he follo|
|00000c20| 77 69 6e 67 20 74 65 6d | 70 6c 61 74 65 3a 0a 0a |wing tem|plate:..|
|00000c30| 00 05 28 43 4f 4e 44 20 | 28 3c 74 72 69 67 67 65 |..(COND |(<trigge|
|00000c40| 72 20 31 3e 20 3c 76 61 | 6c 75 65 20 31 3e 29 0a |r 1> <va|lue 1>).|
|00000c50| 00 0b 28 3c 74 72 69 67 | 67 65 72 20 32 3e 20 3c |..(<trig|ger 2> <|
|00000c60| 76 61 6c 75 65 20 32 3e | 29 0a 00 0b 2e 2e 2e 0a |value 2>|).......|
|00000c70| 00 0b 28 54 20 3c 76 61 | 6c 75 65 20 6e 3e 29 29 |..(T <va|lue n>))|
|00000c80| 0a 0a 6f 00 04 55 73 65 | 20 54 2e 00 02 49 74 20 |..o..Use| T...It |
|00000c90| 61 6c 77 61 79 73 20 70 | 72 65 76 65 6e 74 73 20 |always p|revents |
|00000ca0| 72 75 6e 6e 69 6e 67 20 | 6f 66 66 20 74 68 65 20 |running |off the |
|00000cb0| 65 6e 64 2e 00 02 54 6f | 20 75 73 65 20 54 20 69 |end...To| use T i|
|00000cc0| 73 0a 00 05 61 20 70 6f | 69 6e 74 20 6f 66 20 67 |s...a po|int of g|
|00000cd0| 6f 6f 64 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |ood prog|ramming |
|00000ce0| 70 72 61 63 74 69 63 65 | 2e 0a 23 0f 00 00 00 10 |practice|..#.....|
|00000cf0| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 27 07 |..'.....|'.....'.|
|00000d00| 00 00 00 04 27 05 00 00 | 00 2e 04 10 02 04 10 03 |....'...|........|
|00000d10| 36 0b 01 04 53 45 54 46 | 07 0a 47 45 54 2d 4c 45 |6...SETF|..GET-LE|
|00000d20| 53 53 4f 4e 0b 01 05 51 | 55 4f 54 45 07 06 41 4e |SSON...Q|UOTE..AN|
|00000d30| 44 2d 4f 52 04 10 02 04 | 10 02 0b 01 05 51 55 4f |D-OR....|.....QUO|
|00000d40| 54 45 07 06 4c 45 53 53 | 4f 4e 07 06 41 4e 44 2d |TE..LESS|ON..AND-|
|00000d50| 4f 52 0b 01 04 4e 41 4d | 45 07 06 41 4e 44 2d 4f |OR...NAM|E..AND-O|
|00000d60| 52 04 10 01 07 04 4e 45 | 58 54 07 09 54 4f 2d 52 |R.....NE|XT..TO-R|
|00000d70| 45 50 45 41 54 04 10 01 | 07 08 50 52 45 56 49 4f |EPEAT...|..PREVIO|
|00000d80| 55 53 0b 01 04 43 4f 4e | 44 04 10 01 07 0b 4c 45 |US...CON|D.....LE|
|00000d90| 53 53 4f 4e 2d 4e 41 4d | 45 26 14 43 6f 6d 62 69 |SSON-NAM|E&.Combi|
|00000da0| 6e 69 6e 67 20 50 72 65 | 64 69 63 61 74 65 73 04 |ning Pre|dicates.|
|00000db0| 10 01 04 10 08 07 05 53 | 4c 49 44 45 07 0a 45 58 |.......S|LIDE..EX|
|00000dc0| 50 4f 53 49 54 49 4f 4e | 23 01 00 00 00 04 07 0a |POSITION|#.......|
|00000dd0| 45 58 50 4f 53 49 54 49 | 4f 4e 25 36 01 00 00 0a |EXPOSITI|ON%6....|
|00000de0| 49 6e 20 6d 61 6e 79 20 | 73 69 74 75 61 74 69 6f |In many |situatio|
|00000df0| 6e 73 2c 20 69 74 20 69 | 73 20 6e 61 74 75 72 61 |ns, it i|s natura|
|00000e00| 6c 20 74 6f 20 63 6f 6d | 62 69 6e 65 20 74 68 65 |l to com|bine the|
|00000e10| 20 72 65 73 75 6c 74 73 | 20 6f 66 20 74 77 6f 0a | results| of two.|
|00000e20| 6f 72 20 6d 6f 72 65 20 | 70 72 65 64 69 63 61 74 |or more |predicat|
|00000e30| 65 73 20 69 6e 74 6f 20 | 61 20 63 6f 6d 62 69 6e |es into |a combin|
|00000e40| 65 64 20 74 65 73 74 2e | 00 02 54 68 69 73 20 69 |ed test.|..This i|
|00000e50| 73 20 64 6f 6e 65 20 62 | 79 20 75 73 69 6e 67 0a |s done b|y using.|
|00000e60| 41 4e 44 20 6f 72 20 4f | 52 2e 20 0a 0a 52 6f 75 |AND or O|R. ..Rou|
|00000e70| 67 68 6c 79 2c 20 41 4e | 44 20 61 6e 64 20 4f 52 |ghly, AN|D and OR|
|00000e80| 20 64 6f 20 77 68 61 74 | 20 74 68 65 79 20 73 6f | do what| they so|
|00000e90| 75 6e 64 20 6c 69 6b 65 | 20 74 68 65 79 20 64 6f |und like| they do|
|00000ea0| 2e 00 02 41 4e 44 20 72 | 65 74 75 72 6e 73 0a 4e |...AND r|eturns.N|
|00000eb0| 49 4c 20 69 66 20 41 4e | 59 20 6f 66 20 69 74 73 |IL if AN|Y of its|
|00000ec0| 20 61 72 67 75 6d 65 6e | 74 73 20 65 76 61 6c 75 | argumen|ts evalu|
|00000ed0| 61 74 65 20 74 6f 20 4e | 49 4c 2e 00 02 4f 52 20 |ate to N|IL...OR |
|00000ee0| 72 65 74 75 72 6e 73 20 | 4e 49 4c 20 69 66 0a 41 |returns |NIL if.A|
|00000ef0| 4c 4c 20 6f 66 20 69 74 | 73 20 61 72 67 75 6d 65 |LL of it|s argume|
|00000f00| 6e 74 73 20 65 76 61 6c | 75 61 74 65 20 74 6f 20 |nts eval|uate to |
|00000f10| 4e 49 4c 2e 0a 23 09 00 | 00 00 10 01 04 27 03 00 |NIL..#..|.....'..|
|00000f20| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|00000f30| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 02 00 00 |..EXPOSI|TION#...|
|00000f40| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 25 7d |....EXPO|SITION%}|
|00000f50| 01 00 00 0a 54 68 69 6e | 67 73 20 61 72 65 20 6e |....Thin|gs are n|
|00000f60| 6f 74 20 74 68 61 74 20 | 73 69 6d 70 6c 65 2c 20 |ot that |simple, |
|00000f70| 68 6f 77 65 76 65 72 2c | 20 62 65 63 61 75 73 65 |however,| because|
|00000f80| 20 41 4e 44 20 61 6e 64 | 20 4f 52 20 6d 61 79 0a | AND and| OR may.|
|00000f90| 6e 6f 74 20 65 76 61 6c | 75 61 74 65 20 61 6c 6c |not eval|uate all|
|00000fa0| 20 74 68 65 69 72 20 61 | 72 67 75 6d 65 6e 74 73 | their a|rguments|
|00000fb0| 2e 0a 0a 41 4e 44 20 65 | 76 61 6c 75 61 74 65 73 |...AND e|valuates|
|00000fc0| 20 69 74 73 20 61 72 67 | 75 6d 65 6e 74 73 20 66 | its arg|uments f|
|00000fd0| 72 6f 6d 20 6c 65 66 74 | 20 74 6f 20 72 69 67 68 |rom left| to righ|
|00000fe0| 74 3a 00 02 69 66 20 61 | 6e 79 20 6f 66 20 61 6e |t:..if a|ny of an|
|00000ff0| 0a 41 4e 44 27 73 20 61 | 72 67 75 6d 65 6e 74 73 |.AND's a|rguments|
|00001000| 20 65 76 61 6c 75 61 74 | 65 73 20 74 6f 20 4e 49 | evaluat|es to NI|
|00001010| 4c 2c 20 6e 6f 74 68 69 | 6e 67 20 65 6c 73 65 20 |L, nothi|ng else |
|00001020| 69 73 20 64 6f 6e 65 2c | 20 61 6e 64 20 74 68 65 |is done,| and the|
|00001030| 0a 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 41 4e |.value o|f the AN|
|00001040| 44 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 73 20 |D expres|sion is |
|00001050| 4e 49 4c 2e 0a 0a 49 66 | 20 61 6c 6c 20 61 72 67 |NIL...If| all arg|
|00001060| 75 6d 65 6e 74 73 20 65 | 76 61 6c 75 61 74 65 20 |uments e|valuate |
|00001070| 74 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 74 68 |to somet|hing oth|
|00001080| 65 72 20 74 68 61 6e 20 | 4e 49 4c 2c 20 74 68 65 |er than |NIL, the|
|00001090| 20 76 61 6c 75 65 0a 6f | 66 20 74 68 65 20 41 4e | value.o|f the AN|
|000010a0| 44 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 73 20 |D expres|sion is |
|000010b0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|000010c0| 20 6c 61 73 74 20 61 72 | 67 75 6d 65 6e 74 2e 0a | last ar|gument..|
|000010d0| 23 0b 00 00 00 10 01 04 | 27 03 00 00 00 2e 27 05 |#.......|'.....'.|
|000010e0| 00 00 00 2e 07 05 53 4c | 49 44 45 07 08 45 58 41 |......SL|IDE..EXA|
|000010f0| 4d 50 4c 45 53 23 03 00 | 00 00 04 07 0d 45 58 41 |MPLES#..|.....EXA|
|00001100| 4d 50 4c 45 2d 47 52 4f | 55 50 26 41 0a 41 73 73 |MPLE-GRO|UP&A.Ass|
|00001110| 75 6d 65 20 52 45 53 55 | 4c 54 27 73 20 69 6e 69 |ume RESU|LT's ini|
|00001120| 74 69 61 6c 20 76 61 6c | 75 65 20 69 73 20 4e 49 |tial val|ue is NI|
|00001130| 4c 3b 0a 61 73 73 75 6d | 65 20 50 49 27 73 20 76 |L;.assum|e PI's v|
|00001140| 61 6c 75 65 20 69 73 20 | 33 2e 31 34 2e 23 03 00 |alue is |3.14.#..|
|00001150| 00 00 10 01 26 32 2a 20 | 28 41 4e 44 20 28 4c 49 |....&2* |(AND (LI|
|00001160| 53 54 50 20 50 49 29 20 | 28 53 45 54 46 20 52 45 |STP PI) |(SETF RE|
|00001170| 53 55 4c 54 20 27 53 45 | 54 2d 49 4e 2d 46 49 52 |SULT 'SE|T-IN-FIR|
|00001180| 53 54 2d 41 4e 44 29 29 | 23 01 00 00 00 10 01 26 |ST-AND))|#......&|
|00001190| 2b 4e 49 4c 00 12 3b 52 | 65 74 75 72 6e 73 20 4e |+NIL..;R|eturns N|
|000011a0| 49 4c 20 62 65 63 61 75 | 73 65 20 50 49 20 69 73 |IL becau|se PI is|
|000011b0| 20 6e 6f 74 20 61 20 6c | 69 73 74 2e 23 01 00 00 | not a l|ist.#...|
|000011c0| 00 10 01 27 04 00 00 00 | 2e 07 0d 45 58 41 4d 50 |...'....|...EXAMP|
|000011d0| 4c 45 2d 47 52 4f 55 50 | 04 26 08 2a 20 52 45 53 |LE-GROUP|.&.* RES|
|000011e0| 55 4c 54 23 01 00 00 00 | 10 01 26 68 4e 49 4c 00 |ULT#....|..&hNIL.|
|000011f0| 12 3b 52 65 74 75 72 6e | 73 20 4e 49 4c 20 62 65 |.;Return|s NIL be|
|00001200| 63 61 75 73 65 20 41 4e | 44 20 73 74 6f 70 70 65 |cause AN|D stoppe|
|00001210| 64 0a 00 15 3b 77 68 65 | 6e 20 69 74 20 72 65 61 |d...;whe|n it rea|
|00001220| 63 68 65 64 20 28 4c 49 | 53 54 50 20 50 49 29 2e |ched (LI|STP PI).|
|00001230| 0a 00 15 3b 54 68 65 20 | 53 45 54 46 20 66 6f 72 |...;The |SETF for|
|00001240| 6d 20 77 61 73 20 6e 6f | 74 20 65 76 61 6c 75 61 |m was no|t evalua|
|00001250| 74 65 64 2e 23 03 00 00 | 00 10 01 27 04 00 00 00 |ted.#...|...'....|
|00001260| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|00001270| 04 26 35 2a 20 28 41 4e | 44 20 28 4e 55 4d 42 45 |.&5* (AN|D (NUMBE|
|00001280| 52 50 20 50 49 29 20 28 | 53 45 54 46 20 52 45 53 |RP PI) (|SETF RES|
|00001290| 55 4c 54 20 27 53 45 54 | 2d 49 4e 2d 53 45 43 4f |ULT 'SET|-IN-SECO|
|000012a0| 4e 44 2d 41 4e 44 29 29 | 23 01 00 00 00 10 01 26 |ND-AND))|#......&|
|000012b0| 7f 53 45 54 2d 49 4e 2d | 53 45 43 4f 4e 44 2d 41 |.SET-IN-|SECOND-A|
|000012c0| 4e 44 00 04 3b 52 65 74 | 75 72 6e 73 20 53 45 54 |ND..;Ret|urns SET|
|000012d0| 2d 49 4e 2d 53 45 43 4f | 4e 44 2d 41 4e 44 20 62 |-IN-SECO|ND-AND b|
|000012e0| 65 63 61 75 73 65 0a 00 | 15 3b 50 49 20 69 73 20 |ecause..|.;PI is |
|000012f0| 61 20 6e 75 6d 62 65 72 | 2c 20 63 61 75 73 69 6e |a number|, causin|
|00001300| 67 20 41 4e 44 20 74 6f | 20 6d 6f 76 65 0a 00 15 |g AND to| move...|
|00001310| 3b 6f 6e 20 74 6f 20 65 | 76 61 6c 75 61 74 65 20 |;on to e|valuate |
|00001320| 74 68 65 20 73 65 63 6f | 6e 64 20 66 6f 72 6d 2e |the seco|nd form.|
|00001330| 23 03 00 00 00 10 01 27 | 04 00 00 00 2e 07 0d 45 |#......'|.......E|
|00001340| 58 41 4d 50 4c 45 2d 47 | 52 4f 55 50 04 26 08 2a |XAMPLE-G|ROUP.&.*|
|00001350| 20 52 45 53 55 4c 54 23 | 01 00 00 00 10 01 26 28 | RESULT#|......&(|
|00001360| 53 45 54 2d 49 4e 2d 53 | 45 43 4f 4e 44 2d 41 4e |SET-IN-S|ECOND-AN|
|00001370| 44 00 04 3b 53 45 54 46 | 20 77 61 73 20 65 76 61 |D..;SETF| was eva|
|00001380| 6c 75 61 74 65 64 2e 0a | 23 02 00 00 00 10 01 27 |luated..|#......'|
|00001390| 04 00 00 00 2e 04 10 04 | 27 05 00 00 00 2e 07 05 |........|'.......|
|000013a0| 53 4c 49 44 45 07 0a 45 | 58 50 4f 53 49 54 49 4f |SLIDE..E|XPOSITIO|
|000013b0| 4e 23 04 00 00 00 04 07 | 0a 45 58 50 4f 53 49 54 |N#......|.EXPOSIT|
|000013c0| 49 4f 4e 25 62 01 00 00 | 0a 4f 52 20 61 6c 73 6f |ION%b...|.OR also|
|000013d0| 20 65 76 61 6c 75 61 74 | 65 73 20 69 74 73 20 61 | evaluat|es its a|
|000013e0| 72 67 75 6d 65 6e 74 73 | 20 66 72 6f 6d 20 6c 65 |rguments| from le|
|000013f0| 66 74 20 74 6f 20 72 69 | 67 68 74 3a 00 02 69 66 |ft to ri|ght:..if|
|00001400| 20 61 6e 79 20 6f 66 0a | 69 74 73 20 61 72 67 75 | any of.|its argu|
|00001410| 6d 65 6e 74 73 20 65 76 | 61 6c 75 61 74 65 73 20 |ments ev|aluates |
|00001420| 74 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 74 68 |to somet|hing oth|
|00001430| 65 72 20 74 68 61 6e 20 | 4e 49 4c 2c 20 6e 6f 74 |er than |NIL, not|
|00001440| 68 69 6e 67 20 65 6c 73 | 65 0a 69 73 20 64 6f 6e |hing els|e.is don|
|00001450| 65 20 61 6e 64 20 74 68 | 65 20 76 61 6c 75 65 20 |e and th|e value |
|00001460| 6f 66 20 74 68 65 20 4f | 52 20 65 78 70 72 65 73 |of the O|R expres|
|00001470| 73 69 6f 6e 20 69 73 20 | 74 68 61 74 20 6e 6f 6e |sion is |that non|
|00001480| 4e 49 4c 20 76 61 6c 75 | 65 3b 20 0a 69 66 20 61 |NIL valu|e; .if a|
|00001490| 6c 6c 20 65 76 61 6c 75 | 61 74 65 20 74 6f 20 4e |ll evalu|ate to N|
|000014a0| 49 4c 2c 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |IL, the |value of|
|000014b0| 20 74 68 65 20 4f 52 20 | 65 78 70 72 65 73 73 69 | the OR |expressi|
|000014c0| 6f 6e 20 69 73 20 4e 49 | 4c 2e 0a 0a 53 65 65 20 |on is NI|L...See |
|000014d0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 64 65 |the foll|owing de|
|000014e0| 74 61 69 6c 73 20 73 6c | 69 64 65 20 74 6f 20 73 |tails sl|ide to s|
|000014f0| 65 65 20 68 6f 77 20 41 | 4e 44 20 61 6e 64 20 4f |ee how A|ND and O|
|00001500| 52 20 63 61 6e 20 62 65 | 20 75 73 65 64 0a 69 6e |R can be| used.in|
|00001510| 73 74 65 61 64 20 6f 66 | 20 57 48 45 4e 20 61 6e |stead of| WHEN an|
|00001520| 64 20 55 4e 4c 45 53 53 | 2e 0a 23 09 00 00 00 10 |d UNLESS|..#.....|
|00001530| 01 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00001540| 54 49 4f 4e 23 01 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00001550| 53 49 54 49 4f 4e 25 91 | 01 00 00 0a 49 74 20 69 |SITION%.|....It i|
|00001560| 73 20 70 6f 73 73 69 62 | 6c 65 2c 20 62 75 74 20 |s possib|le, but |
|00001570| 62 61 64 2c 20 74 6f 20 | 75 73 65 20 41 4e 44 20 |bad, to |use AND |
|00001580| 61 6e 64 20 4f 52 20 69 | 6e 73 74 65 61 64 20 6f |and OR i|nstead o|
|00001590| 66 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 0a 65 78 |f condit|ional.ex|
|000015a0| 70 72 65 73 73 69 6f 6e | 73 2e 00 02 54 68 65 20 |pression|s...The |
|000015b0| 66 6f 6c 6c 6f 77 69 6e | 67 20 70 61 69 72 20 61 |followin|g pair a|
|000015c0| 72 65 20 65 71 75 69 76 | 61 6c 65 6e 74 2c 20 66 |re equiv|alent, f|
|000015d0| 6f 72 20 65 78 61 6d 70 | 6c 65 3a 0a 0a 2a 20 28 |or examp|le:..* (|
|000015e0| 57 48 45 4e 20 28 3d 20 | 4e 20 50 49 29 20 28 53 |WHEN (= |N PI) (S|
|000015f0| 45 54 46 20 52 45 53 55 | 4c 54 20 27 49 54 53 2d |ETF RESU|LT 'ITS-|
|00001600| 50 49 29 29 0a 0a 2a 20 | 28 41 4e 44 20 28 3d 20 |PI))..* |(AND (= |
|00001610| 4e 20 50 49 29 20 28 53 | 45 54 46 20 52 45 53 55 |N PI) (S|ETF RESU|
|00001620| 4c 54 20 27 49 54 53 2d | 50 49 29 29 0a 0a 54 68 |LT 'ITS-|PI))..Th|
|00001630| 69 73 20 70 61 69 72 20 | 61 72 65 20 61 6c 73 6f |is pair |are also|
|00001640| 20 65 71 75 69 76 61 6c | 65 6e 74 3a 0a 0a 2a 20 | equival|ent:..* |
|00001650| 28 55 4e 4c 45 53 53 20 | 28 3d 20 4e 20 50 49 29 |(UNLESS |(= N PI)|
|00001660| 20 28 53 45 54 46 20 52 | 45 53 55 4c 54 20 27 49 | (SETF R|ESULT 'I|
|00001670| 54 53 2d 4e 4f 54 2d 50 | 49 29 29 0a 0a 2a 20 28 |TS-NOT-P|I))..* (|
|00001680| 4f 52 20 28 3d 20 4e 20 | 50 49 29 20 28 53 45 54 |OR (= N |PI) (SET|
|00001690| 46 20 52 45 53 55 4c 54 | 20 27 49 54 53 2d 4e 4f |F RESULT| 'ITS-NO|
|000016a0| 54 2d 50 49 29 29 0a 0a | 54 6f 20 75 73 65 20 73 |T-PI))..|To use s|
|000016b0| 75 63 68 20 68 61 63 6b | 73 20 69 73 20 63 6f 6e |uch hack|s is con|
|000016c0| 73 69 64 65 72 65 64 20 | 65 78 74 72 65 6d 65 6c |sidered |extremel|
|000016d0| 79 20 62 61 64 20 70 72 | 6f 67 72 61 6d 6d 69 6e |y bad pr|ogrammin|
|000016e0| 67 20 70 72 61 63 74 69 | 63 65 2e 0a 23 10 00 00 |g practi|ce..#...|
|000016f0| 00 10 01 04 27 03 00 00 | 00 2e 27 05 00 00 00 2e |....'...|..'.....|
|00001700| 27 01 00 00 00 27 03 00 | 00 00 2e 27 05 00 00 00 |'....'..|...'....|
|00001710| 2e 07 05 53 4c 49 44 45 | 07 08 45 58 41 4d 50 4c |...SLIDE|..EXAMPL|
|00001720| 45 53 23 05 00 00 00 04 | 07 0d 45 58 41 4d 50 4c |ES#.....|..EXAMPL|
|00001730| 45 2d 47 52 4f 55 50 26 | 41 0a 41 73 73 75 6d 65 |E-GROUP&|A.Assume|
|00001740| 20 52 45 53 55 4c 54 27 | 73 20 49 4e 49 54 49 41 | RESULT'|s INITIA|
|00001750| 4c 20 76 61 6c 75 65 20 | 69 73 20 4e 49 4c 3b 0a |L value |is NIL;.|
|00001760| 61 73 73 75 6d 65 20 50 | 49 27 73 20 76 61 6c 75 |assume P|I's valu|
|00001770| 65 20 69 73 20 33 2e 31 | 34 2e 23 03 00 00 00 10 |e is 3.1|4.#.....|
|00001780| 01 26 32 2a 20 28 4f 52 | 20 28 4e 55 4d 42 45 52 |.&2* (OR| (NUMBER|
|00001790| 50 20 50 49 29 20 28 53 | 45 54 46 20 52 45 53 55 |P PI) (S|ETF RESU|
|000017a0| 4c 54 20 27 53 45 54 2d | 49 4e 2d 46 49 52 53 54 |LT 'SET-|IN-FIRST|
|000017b0| 2d 4f 52 29 29 23 01 00 | 00 00 10 01 26 25 54 00 |-OR))#..|....&%T.|
|000017c0| 14 3b 52 65 74 75 72 6e | 73 20 54 20 62 65 63 61 |.;Return|s T beca|
|000017d0| 75 73 65 20 50 49 20 69 | 73 20 61 20 6e 75 6d 62 |use PI i|s a numb|
|000017e0| 65 72 2e 23 01 00 00 00 | 10 01 27 04 00 00 00 2e |er.#....|..'.....|
|000017f0| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 04 |..EXAMPL|E-GROUP.|
|00001800| 26 08 2a 20 52 45 53 55 | 4c 54 23 01 00 00 00 10 |&.* RESU|LT#.....|
|00001810| 01 26 6a 4e 49 4c 00 12 | 3b 52 65 74 75 72 6e 73 |.&jNIL..|;Returns|
|00001820| 20 4e 49 4c 20 62 65 63 | 61 75 73 65 20 4f 52 20 | NIL bec|ause OR |
|00001830| 73 74 6f 70 70 65 64 0a | 00 15 3b 77 68 65 6e 20 |stopped.|..;when |
|00001840| 69 74 20 72 65 61 63 68 | 65 64 20 28 4e 55 4d 42 |it reach|ed (NUMB|
|00001850| 45 52 50 20 50 49 29 2e | 0a 00 15 3b 54 68 65 20 |ERP PI).|...;The |
|00001860| 53 45 54 46 20 66 6f 72 | 6d 20 77 61 73 20 6e 6f |SETF for|m was no|
|00001870| 74 20 65 76 61 6c 75 61 | 74 65 64 2e 0a 23 04 00 |t evalua|ted..#..|
|00001880| 00 00 10 01 27 04 00 00 | 00 2e 07 0d 45 58 41 4d |....'...|....EXAM|
|00001890| 50 4c 45 2d 47 52 4f 55 | 50 04 26 31 2a 20 28 4f |PLE-GROU|P.&1* (O|
|000018a0| 52 20 28 4c 49 53 54 50 | 20 50 49 29 20 28 53 45 |R (LISTP| PI) (SE|
|000018b0| 54 46 20 52 45 53 55 4c | 54 20 27 53 45 54 2d 49 |TF RESUL|T 'SET-I|
|000018c0| 4e 2d 53 45 43 4f 4e 44 | 2d 4f 52 29 29 23 01 00 |N-SECOND|-OR))#..|
|000018d0| 00 00 10 01 26 10 53 45 | 54 2d 49 4e 2d 53 45 43 |....&.SE|T-IN-SEC|
|000018e0| 4f 4e 44 2d 4f 52 23 01 | 00 00 00 10 01 27 04 00 |OND-OR#.|.....'..|
|000018f0| 00 00 2e 07 0d 45 58 41 | 4d 50 4c 45 2d 47 52 4f |.....EXA|MPLE-GRO|
|00001900| 55 50 04 26 08 2a 20 52 | 45 53 55 4c 54 23 01 00 |UP.&.* R|ESULT#..|
|00001910| 00 00 10 01 26 7e 53 45 | 54 2d 49 4e 2d 53 45 43 |....&~SE|T-IN-SEC|
|00001920| 4f 4e 44 2d 4f 52 00 05 | 3b 52 65 74 75 72 6e 73 |OND-OR..|;Returns|
|00001930| 20 53 45 54 2d 49 4e 2d | 53 45 43 4f 4e 44 2d 4f | SET-IN-|SECOND-O|
|00001940| 52 20 62 65 63 61 75 73 | 65 0a 00 15 3b 50 49 20 |R becaus|e...;PI |
|00001950| 69 73 20 6e 6f 74 20 61 | 20 6c 69 73 74 2c 20 63 |is not a| list, c|
|00001960| 61 75 73 69 6e 67 20 4f | 52 20 74 6f 20 6d 6f 76 |ausing O|R to mov|
|00001970| 65 0a 00 15 3b 6f 6e 20 | 74 6f 20 65 76 61 6c 75 |e...;on |to evalu|
|00001980| 61 74 65 20 74 68 65 20 | 73 65 63 6f 6e 64 20 66 |ate the |second f|
|00001990| 6f 72 6d 2e 23 03 00 00 | 00 10 01 27 04 00 00 00 |orm.#...|...'....|
|000019a0| 2e 04 10 04 27 05 00 00 | 00 2e 07 05 53 4c 49 44 |....'...|....SLID|
|000019b0| 45 07 08 45 58 41 4d 50 | 4c 45 53 23 06 00 00 00 |E..EXAMP|LES#....|
|000019c0| 04 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|000019d0| 26 41 0a 41 73 73 75 6d | 65 20 52 45 53 55 4c 54 |&A.Assum|e RESULT|
|000019e0| 27 73 20 49 4e 49 54 49 | 41 4c 20 76 61 6c 75 65 |'s INITI|AL value|
|000019f0| 20 69 73 20 4e 49 4c 3b | 0a 61 73 73 75 6d 65 20 | is NIL;|.assume |
|00001a00| 50 49 27 73 20 76 61 6c | 75 65 20 69 73 20 33 2e |PI's val|ue is 3.|
|00001a10| 31 34 2e 23 03 00 00 00 | 10 01 26 1f 2a 20 28 41 |14.#....|..&.* (A|
|00001a20| 4e 44 20 28 4c 49 53 54 | 50 20 50 49 29 20 28 4e |ND (LIST|P PI) (N|
|00001a30| 55 4d 42 45 52 50 20 50 | 49 29 29 23 01 00 00 00 |UMBERP P|I))#....|
|00001a40| 10 01 26 2b 4e 49 4c 00 | 12 3b 52 65 74 75 72 6e |..&+NIL.|.;Return|
|00001a50| 73 20 4e 49 4c 20 62 65 | 63 61 75 73 65 20 50 49 |s NIL be|cause PI|
|00001a60| 20 69 73 20 6e 6f 74 20 | 61 20 6c 69 73 74 2e 23 | is not |a list.#|
|00001a70| 01 00 00 00 10 01 27 04 | 00 00 00 2e 07 0d 45 58 |......'.|......EX|
|00001a80| 41 4d 50 4c 45 2d 47 52 | 4f 55 50 04 26 1e 2a 20 |AMPLE-GR|OUP.&.* |
|00001a90| 28 41 4e 44 20 28 4c 49 | 53 54 20 50 49 29 20 28 |(AND (LI|ST PI) (|
|00001aa0| 4e 55 4d 42 45 52 50 20 | 50 49 29 29 23 01 00 00 |NUMBERP |PI))#...|
|00001ab0| 00 10 01 26 57 54 00 14 | 3b 52 65 74 75 72 6e 73 |...&WT..|;Returns|
|00001ac0| 20 54 20 62 65 63 61 75 | 73 65 20 28 4c 49 53 54 | T becau|se (LIST|
|00001ad0| 20 50 49 29 20 72 65 74 | 75 72 6e 73 20 28 33 2e | PI) ret|urns (3.|
|00001ae0| 31 34 29 2c 0a 00 15 3b | 77 68 69 63 68 20 69 73 |14),...;|which is|
|00001af0| 20 6e 6f 6e 4e 49 4c 2c | 20 61 6e 64 20 50 49 20 | nonNIL,| and PI |
|00001b00| 69 73 20 61 20 6e 75 6d | 62 65 72 2e 23 02 00 00 |is a num|ber.#...|
|00001b10| 00 10 01 27 04 00 00 00 | 2e 07 0d 45 58 41 4d 50 |...'....|...EXAMP|
|00001b20| 4c 45 2d 47 52 4f 55 50 | 04 26 1e 2a 20 28 41 4e |LE-GROUP|.&.* (AN|
|00001b30| 44 20 28 4e 55 4d 42 45 | 52 50 20 50 49 29 20 28 |D (NUMBE|RP PI) (|
|00001b40| 4c 49 53 54 20 50 49 29 | 29 23 01 00 00 00 10 01 |LIST PI)|)#......|
|00001b50| 26 2d 28 33 2e 31 34 29 | 00 0f 3b 50 49 20 69 73 |&-(3.14)|..;PI is|
|00001b60| 20 61 20 6e 75 6d 62 65 | 72 2c 20 73 6f 20 4c 49 | a numbe|r, so LI|
|00001b70| 53 54 20 77 6f 72 6b 73 | 20 6f 6e 20 50 49 2e 23 |ST works| on PI.#|
|00001b80| 01 00 00 00 10 01 27 04 | 00 00 00 2e 04 10 03 27 |......'.|.......'|
|00001b90| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 08 45 58 |.......S|LIDE..EX|
|00001ba0| 41 4d 50 4c 45 53 23 07 | 00 00 00 04 07 0d 45 58 |AMPLES#.|......EX|
|00001bb0| 41 4d 50 4c 45 2d 47 52 | 4f 55 50 26 41 0a 41 73 |AMPLE-GR|OUP&A.As|
|00001bc0| 73 75 6d 65 20 52 45 53 | 55 4c 54 27 73 20 49 4e |sume RES|ULT's IN|
|00001bd0| 49 54 49 41 4c 20 76 61 | 6c 75 65 20 69 73 20 4e |ITIAL va|lue is N|
|00001be0| 49 4c 3b 0a 61 73 73 75 | 6d 65 20 50 49 27 73 20 |IL;.assu|me PI's |
|00001bf0| 76 61 6c 75 65 20 69 73 | 20 33 2e 31 34 2e 23 03 |value is| 3.14.#.|
|00001c00| 00 00 00 10 01 26 1e 2a | 20 28 4f 52 20 28 4c 49 |.....&.*| (OR (LI|
|00001c10| 53 54 50 20 50 49 29 20 | 28 4e 55 4d 42 45 52 50 |STP PI) |(NUMBERP|
|00001c20| 20 50 49 29 29 23 01 00 | 00 00 10 01 26 29 54 00 | PI))#..|....&)T.|
|00001c30| 14 3b 50 49 20 69 73 20 | 6e 6f 74 20 61 20 6c 69 |.;PI is |not a li|
|00001c40| 73 74 2c 20 62 75 74 20 | 69 74 20 69 73 20 61 20 |st, but |it is a |
|00001c50| 6e 75 6d 62 65 72 2e 23 | 01 00 00 00 10 01 27 04 |number.#|......'.|
|00001c60| 00 00 00 2e 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|00001c70| 4f 55 50 04 26 1d 2a 20 | 28 4f 52 20 28 4c 49 53 |OUP.&.* |(OR (LIS|
|00001c80| 54 20 50 49 29 20 28 4e | 55 4d 42 45 52 50 20 50 |T PI) (N|UMBERP P|
|00001c90| 49 29 29 23 01 00 00 00 | 10 01 26 51 28 33 2e 31 |I))#....|..&Q(3.1|
|00001ca0| 34 29 00 0f 3b 54 68 65 | 20 76 61 6c 75 65 20 6f |4)..;The| value o|
|00001cb0| 66 20 28 4c 49 53 54 20 | 50 49 29 20 69 73 20 6e |f (LIST |PI) is n|
|00001cc0| 6f 74 20 4e 49 4c 2c 20 | 73 6f 0a 00 15 3b 74 68 |ot NIL, |so...;th|
|00001cd0| 65 20 73 65 63 6f 6e 64 | 20 61 72 67 75 6d 65 6e |e second| argumen|
|00001ce0| 74 20 69 73 20 69 67 6e | 6f 72 65 64 2e 23 02 00 |t is ign|ored.#..|
|00001cf0| 00 00 10 01 27 04 00 00 | 00 2e 07 0d 45 58 41 4d |....'...|....EXAM|
|00001d00| 50 4c 45 2d 47 52 4f 55 | 50 04 26 1d 2a 20 28 4f |PLE-GROU|P.&.* (O|
|00001d10| 52 20 28 4e 55 4d 42 45 | 52 50 20 50 49 29 20 28 |R (NUMBE|RP PI) (|
|00001d20| 4c 49 53 54 20 50 49 29 | 29 23 01 00 00 00 10 01 |LIST PI)|)#......|
|00001d30| 26 39 54 00 14 3b 50 49 | 20 69 73 20 61 20 6e 75 |&9T..;PI| is a nu|
|00001d40| 6d 62 65 72 2c 20 73 6f | 0a 00 15 3b 74 68 65 20 |mber, so|...;the |
|00001d50| 73 65 63 6f 6e 64 20 61 | 72 67 75 6d 65 6e 74 20 |second a|rgument |
|00001d60| 69 73 20 69 67 6e 6f 72 | 65 64 2e 23 02 00 00 00 |is ignor|ed.#....|
|00001d70| 10 01 27 04 00 00 00 2e | 07 0d 45 58 41 4d 50 4c |..'.....|..EXAMPL|
|00001d80| 45 2d 47 52 4f 55 50 04 | 26 1a 2a 20 28 4f 52 20 |E-GROUP.|&.* (OR |
|00001d90| 28 4c 49 53 54 50 20 50 | 49 29 20 28 3c 20 50 49 |(LISTP P|I) (< PI|
|00001da0| 20 30 29 29 23 01 00 00 | 00 10 01 26 32 4e 49 4c | 0))#...|...&2NIL|
|00001db0| 00 12 3b 50 49 20 69 73 | 20 6e 6f 74 20 61 20 6c |..;PI is| not a l|
|00001dc0| 69 73 74 2c 20 6e 6f 72 | 20 69 73 20 69 74 20 6c |ist, nor| is it l|
|00001dd0| 65 73 73 20 74 68 61 6e | 20 7a 65 72 6f 2e 0a 23 |ess than| zero..#|
|00001de0| 02 00 00 00 10 01 27 04 | 00 00 00 2e 04 10 04 27 |......'.|.......'|
|00001df0| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 08 50 52 |.......S|LIDE..PR|
|00001e00| 41 43 54 49 43 45 23 08 | 00 00 00 07 05 46 4f 52 |ACTICE#.|.....FOR|
|00001e10| 4d 53 0b 01 01 54 04 10 | 02 26 2a 0a 54 72 79 20 |MS...T..|.&*.Try |
|00001e20| 61 20 66 65 77 20 65 78 | 61 6d 70 6c 65 73 20 69 |a few ex|amples i|
|00001e30| 6e 76 6f 6c 76 69 6e 67 | 20 41 4e 44 20 61 6e 64 |nvolving| AND and|
|00001e40| 20 4f 52 2e 0a 23 03 00 | 00 00 10 01 27 05 00 00 | OR..#..|....'...|
|00001e50| 00 2e 07 05 53 4c 49 44 | 45 07 0a 45 58 50 4f 53 |....SLID|E..EXPOS|
|00001e60| 49 54 49 4f 4e 23 09 00 | 00 00 04 07 0a 45 58 50 |ITION#..|.....EXP|
|00001e70| 4f 53 49 54 49 4f 4e 25 | c9 01 00 00 0a 52 65 6d |OSITION%|.....Rem|
|00001e80| 65 6d 62 65 72 20 2e 2e | 2e 0a 0a 6f 00 04 49 46 |ember ..|...o..IF|
|00001e90| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 63 6f 6d | you wan|t to com|
|00001ea0| 62 69 6e 65 20 74 77 6f | 20 6f 72 20 6d 6f 72 65 |bine two| or more|
|00001eb0| 20 70 72 65 64 69 63 61 | 74 65 20 66 6f 72 6d 73 | predica|te forms|
|00001ec0| 2c 0a 00 05 41 4e 44 20 | 74 68 65 20 72 65 73 75 |,...AND |the resu|
|00001ed0| 6c 74 20 69 73 20 74 6f | 20 62 65 20 6e 6f 6e 4e |lt is to| be nonN|
|00001ee0| 49 4c 20 69 66 20 41 4c | 4c 20 74 68 65 20 66 6f |IL if AL|L the fo|
|00001ef0| 72 6d 73 20 61 72 65 20 | 6e 6f 6e 4e 49 4c 2c 0a |rms are |nonNIL,.|
|00001f00| 00 05 54 48 45 4e 20 75 | 73 65 20 41 4e 44 2e 0a |..THEN u|se AND..|
|00001f10| 0a 6f 00 04 49 46 20 79 | 6f 75 20 77 61 6e 74 20 |.o..IF y|ou want |
|00001f20| 74 6f 20 63 6f 6d 62 69 | 6e 65 20 74 77 6f 20 6f |to combi|ne two o|
|00001f30| 72 20 6d 6f 72 65 20 70 | 72 65 64 69 63 61 74 65 |r more p|redicate|
|00001f40| 20 66 6f 72 6d 73 2c 0a | 00 05 41 4e 44 20 74 68 | forms,.|..AND th|
|00001f50| 65 20 72 65 73 75 6c 74 | 20 74 6f 20 62 65 20 6e |e result| to be n|
|00001f60| 6f 6e 4e 49 4c 20 69 66 | 20 41 4e 59 20 74 68 65 |onNIL if| ANY the|
|00001f70| 20 66 6f 72 6d 73 20 61 | 72 65 20 6e 6f 6e 4e 49 | forms a|re nonNI|
|00001f80| 4c 2c 0a 00 05 54 48 45 | 4e 20 75 73 65 20 4f 52 |L,...THE|N use OR|
|00001f90| 2e 0a 0a 6f 00 04 42 6f | 74 68 20 41 4e 44 20 61 |...o..Bo|th AND a|
|00001fa0| 6e 64 20 4f 52 20 65 76 | 61 6c 75 61 74 65 20 74 |nd OR ev|aluate t|
|00001fb0| 68 65 69 72 20 61 72 67 | 75 6d 65 6e 74 73 20 66 |heir arg|uments f|
|00001fc0| 72 6f 6d 20 6c 65 66 74 | 20 74 6f 20 72 69 67 68 |rom left| to righ|
|00001fd0| 74 2e 20 0a 00 05 41 4e | 44 20 79 69 65 6c 64 73 |t. ...AN|D yields|
|00001fe0| 20 4e 49 4c 20 6f 72 20 | 74 68 65 20 76 61 6c 75 | NIL or |the valu|
|00001ff0| 65 20 6f 66 20 74 68 65 | 20 4c 41 53 54 20 61 72 |e of the| LAST ar|
|00002000| 67 75 6d 65 6e 74 2e 00 | 02 4f 52 20 79 69 65 6c |gument..|.OR yiel|
|00002010| 64 73 0a 00 05 4e 49 4c | 20 6f 72 20 74 68 65 20 |ds...NIL| or the |
|00002020| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 46 49 52 |value of| the FIR|
|00002030| 53 54 20 6e 6f 6e 4e 49 | 4c 20 61 72 67 75 6d 65 |ST nonNI|L argume|
|00002040| 6e 74 2e 0a 0a 23 10 00 | 00 00 10 01 04 27 03 00 |nt...#..|.....'..|
|00002050| 00 00 2e 27 05 00 00 00 | 2e 27 09 00 00 00 04 27 |...'....|.'.....'|
|00002060| 05 00 00 00 2e 04 10 02 | 04 10 03 36 0b 01 04 53 |........|...6...S|
|00002070| 45 54 46 07 15 2a 4c 41 | 53 54 2d 4c 4f 41 44 45 |ETF..*LA|ST-LOADE|
|00002080| 44 2d 4c 45 53 53 4f 4e | 53 2a 0b 01 05 51 55 4f |D-LESSON|S*...QUO|
|00002090| 54 45 0b 01 04 43 4f 4e | 44 07 06 41 4e 44 2d 4f |TE...CON|D..AND-O|
|000020a0| 52 04 10 02 04 10 02 04 | 10 03 36 40 |R.......|..6@ |
+--------+-------------------------+-------------------------+--------+--------+