home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-04-01 | 49.0 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 4d 6f 6e 20 |lidomide| on Mon |
|00000030| 46 65 62 20 20 31 20 31 | 39 3a 33 30 3a 30 39 20 |Feb 1 1|9:30:09 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 75 74 69 | 6c 73 2f 63 6c 2e 65 6c |lisp/uti|ls/cl.el|
|00000080| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|00000090| 6f 6e 20 31 39 2e 34 2e | 31 33 20 4c 75 63 69 64 |on 19.4.|13 Lucid|
|000000a0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000b0| 65 72 73 69 6f 6e 20 32 | 2e 31 30 3b 20 20 31 2d |ersion 2|.10; 1-|
|000000c0| 66 65 62 2d 39 33 2e 0a | 3b 3b 3b 20 6f 70 74 69 |feb-93..|;;; opti|
|000000d0| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|000000e0| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|000000f0| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000100| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000110| 20 45 6d 61 63 73 31 38 | 2e 0a 0a 28 69 66 20 28 | Emacs18|...(if (|
|00000120| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000130| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000140| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000150| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000160| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000170| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|00000180| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|00000190| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|000001a0| 72 72 6f 72 20 22 54 68 | 69 73 20 66 69 6c 65 20 |rror "Th|is file |
|000001b0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001c0| 20 45 6d 61 63 73 31 39 | 2e 22 29 29 0a 0a 28 62 | Emacs19|."))..(b|
|000001d0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 21 88 c2 c1 |yte-code| "..!...|
|000001e0| 21 87 22 20 5b 70 72 6f | 76 69 64 65 20 63 6c 20 |!." [pro|vide cl |
|000001f0| 72 65 71 75 69 72 65 5d | 20 32 29 0a 28 66 73 65 |require]| 2).(fse|
|00000200| 74 20 27 70 73 65 74 71 | 20 27 28 6d 61 63 72 6f |t 'psetq| '(macro|
|00000210| 20 2e 20 23 5b 28 26 72 | 65 73 74 20 70 61 69 72 | . #[(&r|est pair|
|00000220| 73 29 20 22 08 47 c1 89 | 89 89 89 89 1a 1b 1c 1d |s) ".G..|........|
|00000230| 1e 06 1e 07 89 1e 08 c9 | a6 ca 55 ac 84 cb cc 21 |........|..U....!|
|00000240| 88 08 c1 1e 0d 89 1e 0e | ab aa 0e 0e 40 89 16 0d |........|....@...|
|00000250| 39 ac 88 cb cf d0 0e 0d | 21 5c 22 88 0e 0d 0e 07 |9.......|!\".....|
|00000260| 42 16 07 0e 0e 41 40 0e | 06 42 16 06 0e 0e 41 41 |B....A@.|.B....AA|
|00000270| 89 16 0e ac 56 2a 0e 06 | c1 89 1e 11 1e 12 89 1e |....V*..|........|
|00000280| 0e ab 9d 0e 0e 40 16 12 | d3 20 89 16 11 0e 12 44 |.....@..|. .....D|
|00000290| 0d 42 15 0e 11 0c 42 14 | 0e 0e 41 89 16 0e ac 63 |.B....B.|..A....c|
|000002a0| 2b 0c 9f 14 0e 07 0c 1e | 14 1e 15 0e 15 ab 96 0e |+.......|........|
|000002b0| 15 40 0e 14 40 0b 42 42 | 13 0e 15 41 16 15 0e 14 |.@..@.BB|...A....|
|000002c0| 41 16 14 aa 66 2a d6 0d | d7 0b 42 c1 46 2e 07 87 |A...f*..|..B.F...|
|000002d0| 22 20 5b 70 61 69 72 73 | 20 6e 69 6c 20 69 20 61 |" [pairs| nil i a|
|000002e0| 73 73 69 67 6e 6d 65 6e | 74 73 20 6e 65 77 73 79 |ssignmen|ts newsy|
|000002f0| 6d 73 20 62 69 6e 64 69 | 6e 67 73 20 66 6f 72 6d |ms bindi|ngs form|
|00000300| 73 20 73 79 6d 62 6f 6c | 73 20 6e 66 6f 72 6d 73 |s symbol|s nforms|
|00000310| 20 32 20 30 20 65 72 72 | 6f 72 20 22 4f 64 64 20 | 2 0 err|or "Odd |
|00000320| 6e 75 6d 62 65 72 20 6f | 66 20 61 72 67 75 6d 65 |number o|f argume|
|00000330| 6e 74 73 20 74 6f 20 60 | 70 73 65 74 71 27 22 20 |nts to `|psetq'" |
|00000340| 76 61 72 20 70 74 72 20 | 22 60 70 73 65 74 71 27 |var ptr |"`psetq'|
|00000350| 20 65 78 70 65 63 74 65 | 64 20 61 20 73 79 6d 62 | expecte|d a symb|
|00000360| 6f 6c 2c 20 66 6f 75 6e | 64 20 27 25 73 27 2e 22 |ol, foun|d '%s'."|
|00000370| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|00000380| 20 6e 65 77 73 79 6d 20 | 66 6f 72 6d 20 67 65 6e | newsym |form gen|
|00000390| 73 79 6d 20 70 74 72 32 | 20 70 74 72 31 20 6c 65 |sym ptr2| ptr1 le|
|000003a0| 74 20 73 65 74 71 5d 20 | 38 20 22 5c 0a 28 70 73 |t setq] |8 "\.(ps|
|000003b0| 65 74 71 20 7b 56 41 52 | 49 41 42 4c 45 20 56 41 |etq {VAR|IABLE VA|
|000003c0| 4c 55 45 7d 2e 2e 2e 29 | 3a 20 49 6e 20 70 61 72 |LUE}...)|: In par|
|000003d0| 61 6c 6c 65 6c 2c 20 73 | 65 74 20 65 61 63 68 20 |allel, s|et each |
|000003e0| 56 41 52 49 41 42 4c 45 | 20 74 6f 20 69 74 73 20 |VARIABLE| to its |
|000003f0| 56 41 4c 55 45 2e 0a 41 | 6c 6c 20 74 68 65 20 56 |VALUE..A|ll the V|
|00000400| 41 4c 55 45 73 20 61 72 | 65 20 65 76 61 6c 75 61 |ALUEs ar|e evalua|
|00000410| 74 65 64 2c 20 61 6e 64 | 20 74 68 65 6e 20 61 6c |ted, and| then al|
|00000420| 6c 20 74 68 65 20 56 41 | 52 49 41 42 4c 45 73 20 |l the VA|RIABLEs |
|00000430| 61 72 65 20 73 65 74 2e | 0a 41 73 69 64 65 20 66 |are set.|.Aside f|
|00000440| 72 6f 6d 20 6f 72 64 65 | 72 20 6f 66 20 65 76 61 |rom orde|r of eva|
|00000450| 6c 75 61 74 69 6f 6e 2c | 20 74 68 69 73 20 69 73 |luation,| this is|
|00000460| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 60 73 65 | the sam|e as `se|
|00000470| 74 71 27 2e 22 5d 29 29 | 0a 28 66 73 65 74 20 27 |tq'."]))|.(fset '|
|00000480| 70 61 69 72 2d 77 69 74 | 68 2d 6e 65 77 73 79 6d |pair-wit|h-newsym|
|00000490| 73 20 23 5b 28 6f 6c 64 | 66 6f 72 6d 73 29 20 22 |s #[(old|forms) "|
|000004a0| 08 c1 89 1a 1b 1c c5 0c | 21 ac 9a c6 20 89 1e 07 |........|!... ...|
|000004b0| 0c 40 44 0b 42 13 0e 07 | 5c 6e 42 12 29 0c 41 89 |.@D.B...|\nB.).A.|
|000004c0| 1e 08 14 29 aa 61 c9 0b | 9f 5c 6e 9f 5c 22 2b 87 |...).a..|.\n.\"+.|
|000004d0| 22 20 5b 6f 6c 64 66 6f | 72 6d 73 20 6e 69 6c 20 |" [oldfo|rms nil |
|000004e0| 6e 65 77 73 79 6d 73 20 | 62 69 6e 64 69 6e 67 73 |newsyms |bindings|
|000004f0| 20 70 74 72 20 65 6e 64 | 70 20 67 65 6e 74 65 6d | ptr end|p gentem|
|00000500| 70 20 6e 65 77 73 79 6d | 20 47 24 24 5f 37 20 76 |p newsym| G$$_7 v|
|00000510| 61 6c 75 65 73 5d 20 34 | 20 22 5c 0a 50 41 49 52 |alues] 4| "\.PAIR|
|00000520| 2d 57 49 54 48 2d 4e 45 | 57 53 59 4d 53 20 4f 4c |-WITH-NE|WSYMS OL|
|00000530| 44 46 4f 52 4d 53 0a 54 | 68 65 20 74 6f 70 2d 6c |DFORMS.T|he top-l|
|00000540| 65 76 65 6c 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |evel com|ponents |
|00000550| 6f 66 20 74 68 65 20 6c | 69 73 74 20 6f 6c 64 66 |of the l|ist oldf|
|00000560| 6f 72 6d 73 20 61 72 65 | 20 70 61 69 72 65 64 20 |orms are| paired |
|00000570| 77 69 74 68 20 66 72 65 | 73 68 0a 73 79 6d 62 6f |with fre|sh.symbo|
|00000580| 6c 73 2c 20 74 68 65 20 | 70 61 69 72 69 6e 67 73 |ls, the |pairings|
|00000590| 20 6c 69 73 74 20 61 6e | 64 20 74 68 65 20 6e 65 | list an|d the ne|
|000005a0| 77 73 79 6d 73 20 6c 69 | 73 74 20 61 72 65 20 72 |wsyms li|st are r|
|000005b0| 65 74 75 72 6e 65 64 2e | 22 5d 29 0a 28 66 73 65 |eturned.|"]).(fse|
|000005c0| 74 20 27 7a 69 70 2d 6c | 69 73 74 73 20 23 5b 28 |t 'zip-l|ists #[(|
|000005d0| 65 76 65 6e 73 20 6f 64 | 64 73 29 20 22 08 19 5c |evens od|ds) "..\|
|000005e0| 6e 1b 09 40 1c 0b 40 1d | c6 1e 07 c8 09 21 ac 9b |n..@..@.|.....!..|
|000005f0| c8 0b 21 ac 96 0d 0c 0e | 07 42 42 16 07 09 41 11 |..!.....|.BB...A.|
|00000600| 0b 41 13 09 40 14 0b 40 | 15 aa 60 0e 07 9f 2d 87 |.A..@..@|..`...-.|
|00000610| 22 20 5b 65 76 65 6e 73 | 20 70 30 20 6f 64 64 73 |" [evens| p0 odds|
|00000620| 20 70 31 20 65 76 65 6e | 20 6f 64 64 20 6e 69 6c | p1 even| odd nil|
|00000630| 20 72 65 73 75 6c 74 20 | 65 6e 64 70 5d 20 33 20 | result |endp] 3 |
|00000640| 22 5c 0a 4d 65 72 67 65 | 20 74 77 6f 20 6c 69 73 |"\.Merge| two lis|
|00000650| 74 73 20 45 56 45 4e 53 | 20 61 6e 64 20 4f 44 44 |ts EVENS| and ODD|
|00000660| 53 2c 20 74 61 6b 69 6e | 67 20 65 6c 74 73 20 66 |S, takin|g elts f|
|00000670| 72 6f 6d 20 65 61 63 68 | 20 6c 69 73 74 20 61 6c |rom each| list al|
|00000680| 74 65 72 6e 61 74 69 6e | 67 6c 79 2e 0a 45 56 45 |ternatin|gly..EVE|
|00000690| 4e 53 20 61 6e 64 20 4f | 44 44 53 20 61 72 65 20 |NS and O|DDS are |
|000006a0| 74 77 6f 20 6c 69 73 74 | 73 2e 20 20 5a 49 50 2d |two list|s. ZIP-|
|000006b0| 4c 49 53 54 53 20 63 6f | 6e 73 74 72 75 63 74 73 |LISTS co|nstructs|
|000006c0| 20 61 20 6e 65 77 20 6c | 69 73 74 2c 20 77 68 6f | a new l|ist, who|
|000006d0| 73 65 0a 65 76 65 6e 20 | 6e 75 6d 62 65 72 65 64 |se.even |numbered|
|000006e0| 20 65 6c 65 6d 65 6e 74 | 73 20 28 30 2c 32 2c 2e | element|s (0,2,.|
|000006f0| 2e 2e 29 20 63 6f 6d 65 | 20 66 72 6f 6d 20 45 56 |..) come| from EV|
|00000700| 45 4e 53 20 61 6e 64 20 | 77 68 6f 73 65 20 6f 64 |ENS and |whose od|
|00000710| 64 0a 6e 75 6d 62 65 72 | 65 64 20 65 6c 65 6d 65 |d.number|ed eleme|
|00000720| 6e 74 73 20 28 31 2c 33 | 2c 2e 2e 2e 29 20 63 6f |nts (1,3|,...) co|
|00000730| 6d 65 20 66 72 6f 6d 20 | 4f 44 44 53 2e 20 0a 54 |me from |ODDS. .T|
|00000740| 68 65 20 63 6f 6e 73 74 | 72 75 63 74 69 6f 6e 20 |he const|ruction |
|00000750| 73 74 6f 70 73 20 77 68 | 65 6e 20 74 68 65 20 73 |stops wh|en the s|
|00000760| 68 6f 72 74 65 72 20 6c | 69 73 74 20 69 73 20 65 |horter l|ist is e|
|00000770| 78 68 61 75 73 74 65 64 | 2e 22 5d 29 0a 28 66 73 |xhausted|."]).(fs|
|00000780| 65 74 20 27 75 6e 7a 69 | 70 2d 6c 69 73 74 20 23 |et 'unzi|p-list #|
|00000790| 5b 28 6c 69 73 74 29 20 | 22 08 89 19 40 1a c3 09 |[(list) |"...@...|
|000007a0| 21 1c c5 1e 06 c5 1e 07 | c8 09 21 ac 99 5c 6e 0e |!.......|..!..\n.|
|000007b0| 06 42 16 06 0c 0e 07 42 | 16 07 c9 09 21 89 11 40 |.B.....B|....!..@|
|000007c0| 12 c3 09 21 14 aa 62 ca | 0e 06 9f 0e 07 9f 5c 22 |...!..b.|......\"|
|000007d0| 2d 87 22 20 5b 6c 69 73 | 74 20 70 74 72 20 74 68 |-." [lis|t ptr th|
|000007e0| 69 73 20 63 61 64 72 20 | 6e 65 78 74 20 6e 69 6c |is cadr |next nil|
|000007f0| 20 65 76 65 6e 73 20 6f | 64 64 73 20 65 6e 64 70 | evens o|dds endp|
|00000800| 20 63 64 64 72 20 76 61 | 6c 75 65 73 5d 20 34 20 | cddr va|lues] 4 |
|00000810| 22 5c 0a 45 78 74 72 61 | 63 74 20 65 76 65 6e 20 |"\.Extra|ct even |
|00000820| 61 6e 64 20 6f 64 64 20 | 65 6c 65 6d 65 6e 74 73 |and odd |elements|
|00000830| 20 6f 66 20 4c 49 53 54 | 20 69 6e 74 6f 20 74 77 | of LIST| into tw|
|00000840| 6f 20 73 65 70 61 72 61 | 74 65 20 6c 69 73 74 73 |o separa|te lists|
|00000850| 2e 0a 54 68 65 20 61 72 | 67 75 6d 65 6e 74 20 4c |..The ar|gument L|
|00000860| 49 53 54 20 69 73 20 73 | 65 70 61 72 61 74 65 64 |IST is s|eparated|
|00000870| 20 69 6e 20 74 77 6f 20 | 73 74 72 61 6e 64 73 2c | in two |strands,|
|00000880| 20 74 68 65 20 65 76 65 | 6e 20 61 6e 64 20 74 68 | the eve|n and th|
|00000890| 65 20 6f 64 64 0a 6e 75 | 6d 62 65 72 65 64 20 65 |e odd.nu|mbered e|
|000008a0| 6c 65 6d 65 6e 74 73 2e | 20 20 4e 75 6d 62 65 72 |lements.| Number|
|000008b0| 69 6e 67 20 73 74 61 72 | 74 73 20 77 69 74 68 20 |ing star|ts with |
|000008c0| 30 2c 20 73 6f 20 74 68 | 65 20 66 69 72 73 74 20 |0, so th|e first |
|000008d0| 65 6c 65 6d 65 6e 74 0a | 62 65 6c 6f 6e 67 73 20 |element.|belongs |
|000008e0| 69 6e 20 45 56 45 4e 53 | 2e 20 4e 6f 20 63 68 65 |in EVENS|. No che|
|000008f0| 63 6b 20 69 73 20 6d 61 | 64 65 20 74 68 61 74 20 |ck is ma|de that |
|00000900| 74 68 65 72 65 20 69 73 | 20 61 6e 20 65 76 65 6e |there is| an even|
|00000910| 20 6e 75 6d 62 65 72 20 | 6f 66 0a 65 6c 65 6d 65 | number |of.eleme|
|00000920| 6e 74 73 20 74 6f 20 73 | 74 61 72 74 20 77 69 74 |nts to s|tart wit|
|00000930| 68 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 72 65 61 |h."]).(f|set 'rea|
|00000940| 73 73 65 6d 62 6c 65 2d | 61 72 67 73 6c 69 73 74 |ssemble-|argslist|
|00000950| 73 20 23 5b 28 61 72 67 | 73 6c 69 73 74 73 29 20 |s #[(arg|slists) |
|00000960| 22 c0 c1 c2 c3 0c 5c 22 | 5c 22 1d c6 1e 07 0d 1e |".....\"|\"......|
|00000970| 08 c9 1e 5c 6e c9 0e 08 | 59 ac 92 c2 cb 0c 5c 22 |...\n...|Y.....\"|
|00000980| 0e 07 42 16 07 0e 5c 6e | cc 5c 5c 89 16 5c 6e aa |..B...\n|.\\..\n.|
|00000990| 69 0e 07 9f 2c 87 22 20 | 5b 61 70 70 6c 79 20 6d |i...,." |[apply m|
|000009a0| 69 6e 20 6d 61 70 63 61 | 72 20 6c 65 6e 67 74 68 |in mapca|r length|
|000009b0| 20 61 72 67 73 6c 69 73 | 74 73 20 6d 69 6e 6c 65 | argslis|ts minle|
|000009c0| 6e 20 6e 69 6c 20 72 65 | 73 75 6c 74 20 54 24 24 |n nil re|sult T$$|
|000009d0| 5f 32 32 20 30 20 69 20 | 23 5b 28 73 75 62 6c 69 |_22 0 i |#[(subli|
|000009e0| 73 74 29 20 22 08 09 9c | 87 22 20 5b 73 75 62 6c |st) "...|." [subl|
|000009f0| 69 73 74 20 69 5d 20 32 | 5d 20 31 5d 20 36 20 22 |ist i] 2|] 1] 6 "|
|00000a00| 5c 0a 28 72 65 61 73 73 | 65 6d 62 6c 65 2d 61 72 |\.(reass|emble-ar|
|00000a10| 67 73 6c 69 73 74 73 20 | 41 52 47 53 4c 49 53 54 |gslists |ARGSLIST|
|00000a20| 53 29 2e 0a 41 52 47 53 | 4c 49 53 54 53 20 69 73 |S)..ARGS|LISTS is|
|00000a30| 20 61 20 6c 69 73 74 20 | 6f 66 20 73 65 71 75 65 | a list |of seque|
|00000a40| 6e 63 65 73 2e 20 20 52 | 65 74 75 72 6e 20 61 20 |nces. R|eturn a |
|00000a50| 6c 69 73 74 20 6f 66 20 | 6c 69 73 74 73 2c 20 74 |list of |lists, t|
|00000a60| 68 65 20 66 69 72 73 74 | 0a 73 75 62 6c 69 73 74 |he first|.sublist|
|00000a70| 20 62 65 69 6e 67 20 61 | 6c 6c 20 74 68 65 20 65 | being a|ll the e|
|00000a80| 6e 74 72 69 65 73 20 63 | 6f 6d 69 6e 67 20 66 72 |ntries c|oming fr|
|00000a90| 6f 6d 20 45 4c 54 20 30 | 20 6f 66 20 74 68 65 20 |om ELT 0| of the |
|00000aa0| 6f 72 69 67 69 6e 61 6c | 0a 73 75 62 6c 69 73 74 |original|.sublist|
|00000ab0| 73 2c 20 74 68 65 20 6e | 65 78 74 20 74 68 6f 73 |s, the n|ext thos|
|00000ac0| 65 20 63 6f 6d 69 6e 67 | 20 66 72 6f 6d 20 45 4c |e coming| from EL|
|00000ad0| 54 20 31 20 61 6e 64 20 | 73 6f 20 6f 6e 2c 20 75 |T 1 and |so on, u|
|00000ae0| 6e 74 69 6c 20 74 68 65 | 0a 73 68 6f 72 74 65 73 |ntil the|.shortes|
|00000af0| 74 20 6c 69 73 74 20 69 | 73 20 65 78 68 61 75 73 |t list i|s exhaus|
|00000b00| 74 65 64 2e 22 5d 29 0a | 28 66 73 65 74 20 27 62 |ted."]).|(fset 'b|
|00000b10| 75 69 6c 64 2d 6b 6c 69 | 73 74 20 23 5b 28 61 72 |uild-kli|st #[(ar|
|00000b20| 67 73 6c 69 73 74 20 61 | 63 63 65 70 74 61 62 6c |gslist a|cceptabl|
|00000b30| 65 29 20 22 08 3c ab 86 | c1 08 47 21 ac 84 c2 c3 |e) ".<..|..G!....|
|00000b40| 21 88 0c 3c ab 86 c5 c6 | 0c 5c 22 ac 84 c2 c7 21 |!..<....|.\"....!|
|00000b50| 88 c8 16 09 ca 20 89 1e | 0b cc 08 21 4c 88 0e 09 |..... ..|...!L...|
|00000b60| ab 86 cd 0e 0e 21 aa 8d | cf 16 09 0e 0b 4a 43 16 |.....!..|.....JC.|
|00000b70| 0e cd 0e 0e 21 29 89 1e | 10 41 40 1e 11 0e 10 40 |....!)..|.A@....@|
|00000b80| 1e 12 c5 c6 0e 12 5c 22 | ac 88 c2 d3 d4 0e 12 21 |......\"|.......!|
|00000b90| 5c 22 88 d5 0e 12 0e 11 | 5c 22 1e 16 0c 89 1e 17 |\"......|\"......|
|00000ba0| 40 1e 18 c8 1e 19 c8 1e | 1a db 0e 17 21 ac 9d dc |@.......|....!...|
|00000bb0| 0e 18 0e 16 5c 22 89 16 | 19 ab 87 0e 19 0e 1a 42 |....\"..|.......B|
|00000bc0| 16 1a 0e 17 41 89 16 17 | 40 16 18 aa 5d 0e 1a 2e |....A...|@...]...|
|00000bd0| 08 87 22 20 5b 61 72 67 | 73 6c 69 73 74 20 65 76 |.." [arg|slist ev|
|00000be0| 65 6e 70 20 65 72 72 6f | 72 20 22 4f 64 64 20 6e |enp erro|r "Odd n|
|00000bf0| 75 6d 62 65 72 20 6f 66 | 20 6b 65 79 77 6f 72 64 |umber of| keyword|
|00000c00| 2d 61 72 67 73 22 20 61 | 63 63 65 70 74 61 62 6c |-args" a|cceptabl|
|00000c10| 65 20 65 76 65 72 79 20 | 6b 65 79 77 6f 72 64 70 |e every |keywordp|
|00000c20| 20 22 53 65 63 6f 6e 64 | 20 61 72 67 20 73 68 6f | "Second| arg sho|
|00000c30| 75 6c 64 20 62 65 20 61 | 20 6c 69 73 74 20 6f 66 |uld be a| list of|
|00000c40| 20 6b 65 79 77 6f 72 64 | 73 22 20 6e 69 6c 20 2a | keyword|s" nil *|
|00000c50| 6d 76 61 6c 75 65 73 2d | 63 6f 75 6e 74 2a 20 67 |mvalues-|count* g|
|00000c60| 65 6e 73 79 6d 20 69 74 | 20 75 6e 7a 69 70 2d 6c |ensym it| unzip-l|
|00000c70| 69 73 74 20 63 6f 70 79 | 2d 73 65 71 75 65 6e 63 |ist copy|-sequenc|
|00000c80| 65 20 2a 6d 76 61 6c 75 | 65 73 2d 76 61 6c 75 65 |e *mvalu|es-value|
|00000c90| 73 2a 20 31 20 54 24 24 | 5f 32 33 20 66 6f 72 6d |s* 1 T$$|_23 form|
|00000ca0| 73 20 6b 65 79 77 6f 72 | 64 73 20 22 45 78 70 65 |s keywor|ds "Expe|
|00000cb0| 63 74 65 64 20 6b 65 79 | 77 6f 72 64 73 2c 20 66 |cted key|words, f|
|00000cc0| 6f 75 6e 64 20 60 25 73 | 27 22 20 70 72 69 6e 31 |ound `%s|'" prin1|
|00000cd0| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 70 61 69 72 6c |-to-stri|ng pairl|
|00000ce0| 69 73 20 61 75 78 6c 69 | 73 74 20 70 74 72 20 74 |is auxli|st ptr t|
|00000cf0| 68 69 73 20 61 75 78 76 | 61 6c 20 61 6c 69 73 74 |his auxv|al alist|
|00000d00| 20 65 6e 64 70 20 61 73 | 73 6f 63 5d 20 35 20 22 | endp as|soc] 5 "|
|00000d10| 5c 0a 44 65 63 6f 64 65 | 20 61 20 6b 65 79 77 6f |\.Decode| a keywo|
|00000d20| 72 64 20 61 72 67 75 6d | 65 6e 74 20 6c 69 73 74 |rd argum|ent list|
|00000d30| 20 41 52 47 53 4c 49 53 | 54 20 66 6f 72 20 6b 65 | ARGSLIS|T for ke|
|00000d40| 79 77 6f 72 64 73 20 69 | 6e 20 41 43 43 45 50 54 |ywords i|n ACCEPT|
|00000d50| 41 42 4c 45 2e 0a 41 52 | 47 53 4c 49 53 54 20 69 |ABLE..AR|GSLIST i|
|00000d60| 73 20 61 20 6c 69 73 74 | 2c 20 70 72 65 73 75 6d |s a list|, presum|
|00000d70| 61 62 6c 79 20 74 68 65 | 20 26 72 65 73 74 20 61 |ably the| &rest a|
|00000d80| 72 67 75 6d 65 6e 74 20 | 6f 66 20 61 20 63 61 6c |rgument |of a cal|
|00000d90| 6c 2c 20 77 68 6f 73 65 | 0a 65 76 65 6e 20 6e 75 |l, whose|.even nu|
|00000da0| 6d 62 65 72 65 64 20 65 | 6c 65 6d 65 6e 74 73 20 |mbered e|lements |
|00000db0| 6d 75 73 74 20 62 65 20 | 6b 65 79 77 6f 72 64 73 |must be |keywords|
|00000dc0| 2e 0a 41 43 43 45 50 54 | 41 42 4c 45 20 69 73 20 |..ACCEPT|ABLE is |
|00000dd0| 61 20 6c 69 73 74 20 6f | 66 20 6b 65 79 77 6f 72 |a list o|f keywor|
|00000de0| 64 73 2c 20 74 68 65 20 | 6f 6e 6c 79 20 6f 6e 65 |ds, the |only one|
|00000df0| 73 20 74 68 61 74 20 61 | 72 65 20 74 72 75 6c 79 |s that a|re truly|
|00000e00| 20 61 63 63 65 70 74 61 | 62 6c 65 2e 0a 54 68 65 | accepta|ble..The|
|00000e10| 20 72 65 73 75 6c 74 20 | 69 73 20 61 6e 20 61 6c | result |is an al|
|00000e20| 69 73 74 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ist cont|aining t|
|00000e30| 68 65 20 61 72 67 75 6d | 65 6e 74 73 20 6e 61 6d |he argum|ents nam|
|00000e40| 65 64 20 62 79 20 74 68 | 65 20 6b 65 79 77 6f 72 |ed by th|e keywor|
|00000e50| 64 73 0a 69 6e 20 41 43 | 43 45 50 54 41 42 4c 45 |ds.in AC|CEPTABLE|
|00000e60| 2c 20 6f 72 20 6e 69 6c | 20 69 66 20 73 6f 6d 65 |, or nil| if some|
|00000e70| 74 68 69 6e 67 20 66 61 | 69 6c 65 64 2e 22 5d 29 |thing fa|iled."])|
|00000e80| 0a 28 66 73 65 74 20 27 | 64 75 70 6c 69 63 61 74 |.(fset '|duplicat|
|00000e90| 65 2d 73 79 6d 62 6f 6c | 73 2d 70 20 23 5b 28 6c |e-symbol|s-p #[(l|
|00000ea0| 69 73 74 29 20 22 c0 c1 | 20 1a 1b 0c 3c ab 86 c5 |ist) "..| ...<...|
|00000eb0| c6 0c 5c 22 ac 84 c7 c8 | 21 88 c9 ca 0c 5c 22 88 |..\"....|!....\".|
|00000ec0| c9 cb 0c 5c 22 88 c9 cc | 0c 5c 22 88 0b 2a 87 22 |...\"...|.\"..*."|
|00000ed0| 20 5b 6e 69 6c 20 67 65 | 6e 73 79 6d 20 70 72 6f | [nil ge|nsym pro|
|00000ee0| 70 6e 61 6d 65 20 64 75 | 70 6c 69 63 61 74 65 73 |pname du|plicates|
|00000ef0| 20 6c 69 73 74 20 65 76 | 65 72 79 20 73 79 6d 62 | list ev|ery symb|
|00000f00| 6f 6c 70 20 65 72 72 6f | 72 20 22 41 20 6c 69 73 |olp erro|r "A lis|
|00000f10| 74 20 6f 66 20 73 79 6d | 62 6f 6c 73 20 69 73 20 |t of sym|bols is |
|00000f20| 6e 65 65 64 65 64 22 20 | 6d 61 70 63 61 72 20 23 |needed" |mapcar #|
|00000f30| 5b 28 78 29 20 22 c0 09 | 5c 6e c3 23 87 22 20 5b |[(x) "..|\n.#." [|
|00000f40| 70 75 74 20 78 20 70 72 | 6f 70 6e 61 6d 65 20 30 |put x pr|opname 0|
|00000f50| 5d 20 34 5d 20 23 5b 28 | 78 29 20 22 c0 09 5c 6e |] 4] #[(|x) "..\n|
|00000f60| 09 5c 6e 4e 54 23 87 22 | 20 5b 70 75 74 20 78 20 |.\nNT#."| [put x |
|00000f70| 70 72 6f 70 6e 61 6d 65 | 5d 20 35 5d 20 23 5b 28 |propname|] 5] #[(|
|00000f80| 78 29 20 22 08 09 4e c2 | 56 ad 85 08 0b 42 89 13 |x) "..N.|V....B..|
|00000f90| 87 22 20 5b 78 20 70 72 | 6f 70 6e 61 6d 65 20 31 |." [x pr|opname 1|
|00000fa0| 20 64 75 70 6c 69 63 61 | 74 65 73 5d 20 32 5d 5d | duplica|tes] 2]]|
|00000fb0| 20 33 20 22 5c 0a 46 69 | 6e 64 20 61 6c 6c 20 73 | 3 "\.Fi|nd all s|
|00000fc0| 79 6d 62 6f 6c 73 20 61 | 70 70 65 61 72 69 6e 67 |ymbols a|ppearing|
|00000fd0| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 63 65 20 | more th|an once |
|00000fe0| 69 6e 20 4c 49 53 54 2e | 0a 52 65 74 75 72 6e 20 |in LIST.|.Return |
|00000ff0| 61 20 6c 69 73 74 20 6f | 66 20 61 6c 6c 20 73 75 |a list o|f all su|
|00001000| 63 68 20 64 75 70 6c 69 | 63 61 74 65 73 3b 20 60 |ch dupli|cates; `|
|00001010| 6e 69 6c 27 20 69 66 20 | 74 68 65 72 65 20 61 72 |nil' if |there ar|
|00001020| 65 20 6e 6f 20 64 75 70 | 6c 69 63 61 74 65 73 2e |e no dup|licates.|
|00001030| 22 5d 29 0a 28 66 73 65 | 74 20 27 64 65 66 6b 65 |"]).(fse|t 'defke|
|00001040| 79 77 6f 72 64 20 27 28 | 6d 61 63 72 6f 20 2e 20 |yword '(|macro . |
|00001050| 23 5b 28 78 20 26 6f 70 | 74 69 6f 6e 61 6c 20 64 |#[(x &op|tional d|
|00001060| 6f 63 73 74 72 69 6e 67 | 29 20 22 08 39 ab 87 c1 |ocstring|) ".9...|
|00001070| 08 c2 08 44 45 87 c3 c4 | c5 08 21 5c 22 87 22 20 |...DE...|..!\"." |
|00001080| 5b 78 20 64 65 66 63 6f | 6e 73 74 20 71 75 6f 74 |[x defco|nst quot|
|00001090| 65 20 65 72 72 6f 72 20 | 22 60 25 73 27 20 69 73 |e error |"`%s' is|
|000010a0| 20 6e 6f 74 20 61 20 73 | 79 6d 62 6f 6c 22 20 70 | not a s|ymbol" p|
|000010b0| 72 69 6e 31 2d 74 6f 2d | 73 74 72 69 6e 67 5d 20 |rin1-to-|string] |
|000010c0| 34 20 22 5c 0a 4d 61 6b | 65 20 73 79 6d 62 6f 6c |4 "\.Mak|e symbol|
|000010d0| 20 58 20 61 20 6b 65 79 | 77 6f 72 64 20 28 73 79 | X a key|word (sy|
|000010e0| 6d 62 6f 6c 20 77 68 6f | 73 65 20 76 61 6c 75 65 |mbol who|se value|
|000010f0| 20 69 73 20 69 74 73 65 | 6c 66 29 2e 0a 4f 70 74 | is itse|lf)..Opt|
|00001100| 69 6f 6e 61 6c 20 73 65 | 63 6f 6e 64 20 61 72 67 |ional se|cond arg|
|00001110| 75 6d 65 6e 74 20 69 73 | 20 61 20 64 6f 63 75 6d |ument is| a docum|
|00001120| 65 6e 74 61 74 69 6f 6e | 20 73 74 72 69 6e 67 20 |entation| string |
|00001130| 66 6f 72 20 69 74 2e 22 | 5d 29 29 0a 28 66 73 65 |for it."|])).(fse|
|00001140| 74 20 27 6b 65 79 77 6f | 72 64 70 20 23 5b 28 73 |t 'keywo|rdp #[(s|
|00001150| 79 6d 29 20 22 08 39 ab | 8e c1 c2 08 21 c3 48 c4 |ym) ".9.|....!.H.|
|00001160| 5c 22 ab 84 08 89 4c 87 | c5 87 22 20 5b 73 79 6d |\"....L.|.." [sym|
|00001170| 20 63 68 61 72 2d 65 71 | 75 61 6c 20 73 79 6d 62 | char-eq|ual symb|
|00001180| 6f 6c 2d 6e 61 6d 65 20 | 30 20 35 38 20 6e 69 6c |ol-name |0 58 nil|
|00001190| 5d 20 33 20 22 5c 0a 52 | 65 74 75 72 6e 20 60 74 |] 3 "\.R|eturn `t|
|000011a0| 27 20 69 66 20 53 59 4d | 20 69 73 20 61 20 6b 65 |' if SYM| is a ke|
|000011b0| 79 77 6f 72 64 2e 22 5d | 29 0a 28 66 73 65 74 20 |yword."]|).(fset |
|000011c0| 27 6b 65 79 77 6f 72 64 | 2d 6f 66 20 23 5b 28 73 |'keyword|-of #[(s|
|000011d0| 79 6d 29 20 22 c0 09 21 | ab 82 09 87 09 39 ab 8d |ym) "..!|.....9..|
|000011e0| c2 c3 c4 09 21 50 21 89 | 1d 89 4c 29 87 c6 c7 c8 |....!P!.|..L)....|
|000011f0| 09 21 5c 22 87 22 20 5b | 6b 65 79 77 6f 72 64 70 |.!\"." [|keywordp|
|00001200| 20 73 79 6d 20 69 6e 74 | 65 72 6e 20 22 3a 22 20 | sym int|ern ":" |
|00001210| 73 79 6d 62 6f 6c 2d 6e | 61 6d 65 20 6e 65 77 73 |symbol-n|ame news|
|00001220| 79 6d 20 65 72 72 6f 72 | 20 22 45 78 70 65 63 74 |ym error| "Expect|
|00001230| 65 64 20 61 20 73 79 6d | 62 6f 6c 2c 20 6e 6f 74 |ed a sym|bol, not|
|00001240| 20 60 25 73 27 22 20 70 | 72 69 6e 31 2d 74 6f 2d | `%s'" p|rin1-to-|
|00001250| 73 74 72 69 6e 67 5d 20 | 35 20 22 5c 0a 52 65 74 |string] |5 "\.Ret|
|00001260| 75 72 6e 20 61 20 6b 65 | 79 77 6f 72 64 20 74 68 |urn a ke|yword th|
|00001270| 61 74 20 69 73 20 6e 61 | 74 75 72 61 6c 6c 79 20 |at is na|turally |
|00001280| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00001290| 73 79 6d 62 6f 6c 20 53 | 59 4d 2e 0a 49 66 20 53 |symbol S|YM..If S|
|000012a0| 59 4d 20 69 73 20 6b 65 | 79 77 6f 72 64 2c 20 74 |YM is ke|yword, t|
|000012b0| 68 65 20 76 61 6c 75 65 | 20 69 73 20 53 59 4d 2e |he value| is SYM.|
|000012c0| 0a 4f 74 68 65 72 77 69 | 73 65 20 69 74 20 69 73 |.Otherwi|se it is|
|000012d0| 20 61 20 6b 65 79 77 6f | 72 64 20 77 68 6f 73 65 | a keywo|rd whose|
|000012e0| 20 6e 61 6d 65 20 69 73 | 20 60 3a 27 20 66 6f 6c | name is| `:' fol|
|000012f0| 6c 6f 77 65 64 20 62 79 | 20 53 59 4d 27 73 20 6e |lowed by| SYM's n|
|00001300| 61 6d 65 2e 22 5d 29 0a | 28 64 65 66 76 61 72 20 |ame."]).|(defvar |
|00001310| 2a 67 65 6e 74 65 6d 70 | 2d 69 6e 64 65 78 2a 20 |*gentemp|-index* |
|00001320| 30 20 22 5c 0a 49 6e 74 | 65 67 65 72 20 75 73 65 |0 "\.Int|eger use|
|00001330| 64 20 62 79 20 67 65 6e | 74 65 6d 70 20 74 6f 20 |d by gen|temp to |
|00001340| 70 72 6f 64 75 63 65 20 | 6e 65 77 20 6e 61 6d 65 |produce |new name|
|00001350| 73 2e 22 29 0a 28 64 65 | 66 76 61 72 20 2a 67 65 |s.").(de|fvar *ge|
|00001360| 6e 74 65 6d 70 2d 70 72 | 65 66 69 78 2a 20 22 54 |ntemp-pr|efix* "T|
|00001370| 24 24 5f 22 20 22 5c 0a | 4e 61 6d 65 73 20 67 65 |$$_" "\.|Names ge|
|00001380| 6e 65 72 61 74 65 64 20 | 62 79 20 67 65 6e 74 65 |nerated |by gente|
|00001390| 6d 70 20 62 65 67 69 6e | 20 77 69 74 68 20 74 68 |mp begin| with th|
|000013a0| 69 73 20 73 74 72 69 6e | 67 20 62 79 20 64 65 66 |is strin|g by def|
|000013b0| 61 75 6c 74 2e 22 29 0a | 28 66 73 65 74 20 27 67 |ault.").|(fset 'g|
|000013c0| 65 6e 74 65 6d 70 20 23 | 5b 28 26 6f 70 74 69 6f |entemp #|[(&optio|
|000013d0| 6e 61 6c 20 70 72 65 66 | 69 78 20 6f 62 6c 69 73 |nal pref|ix oblis|
|000013e0| 74 29 20 22 08 ac 82 09 | 10 5c 6e ac 82 0b 12 c4 |t) "....|.\n.....|
|000013f0| 89 1d 1e 06 0e 06 ac 9a | 08 0e 07 50 15 0e 07 c8 |........|...P....|
|00001400| 5c 5c 16 07 c9 0d 5c 6e | 5c 22 ac 6b ca 0d 5c 6e |\\....\n|\".k..\n|
|00001410| 5c 22 89 16 06 ab 66 0e | 06 2a 87 22 20 5b 70 72 |\"....f.|.*." [pr|
|00001420| 65 66 69 78 20 2a 67 65 | 6e 74 65 6d 70 2d 70 72 |efix *ge|ntemp-pr|
|00001430| 65 66 69 78 2a 20 6f 62 | 6c 69 73 74 20 6f 62 61 |efix* ob|list oba|
|00001440| 72 72 61 79 20 6e 69 6c | 20 6e 65 77 6e 61 6d 65 |rray nil| newname|
|00001450| 20 6e 65 77 73 79 6d 62 | 6f 6c 20 2a 67 65 6e 74 | newsymb|ol *gent|
|00001460| 65 6d 70 2d 69 6e 64 65 | 78 2a 20 31 20 69 6e 74 |emp-inde|x* 1 int|
|00001470| 65 72 6e 2d 73 6f 66 74 | 20 69 6e 74 65 72 6e 5d |ern-soft| intern]|
|00001480| 20 34 20 22 5c 0a 47 65 | 6e 65 72 61 74 65 20 61 | 4 "\.Ge|nerate a|
|00001490| 20 66 72 65 73 68 20 69 | 6e 74 65 72 6e 65 64 20 | fresh i|nterned |
|000014a0| 73 79 6d 62 6f 6c 2e 0a | 54 68 65 72 65 20 61 72 |symbol..|There ar|
|000014b0| 65 20 32 20 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |e 2 opti|onal arg|
|000014c0| 75 6d 65 6e 74 73 2c 20 | 50 52 45 46 49 58 20 61 |uments, |PREFIX a|
|000014d0| 6e 64 20 4f 42 4c 49 53 | 54 2e 20 20 50 52 45 46 |nd OBLIS|T. PREF|
|000014e0| 49 58 20 69 73 20 74 68 | 65 0a 73 74 72 69 6e 67 |IX is th|e.string|
|000014f0| 20 74 68 61 74 20 62 65 | 67 69 6e 73 20 74 68 65 | that be|gins the|
|00001500| 20 6e 65 77 20 6e 61 6d | 65 2c 20 4f 42 4c 49 53 | new nam|e, OBLIS|
|00001510| 54 20 69 73 20 74 68 65 | 20 6f 62 61 72 72 61 79 |T is the| obarray|
|00001520| 20 75 73 65 64 20 74 6f | 20 73 65 61 72 63 68 20 | used to| search |
|00001530| 66 6f 72 0a 6f 6c 64 20 | 6e 61 6d 65 73 2e 20 20 |for.old |names. |
|00001540| 54 68 65 20 64 65 66 61 | 75 6c 74 73 20 61 72 65 |The defa|ults are|
|00001550| 20 6a 75 73 74 20 72 69 | 67 68 74 2c 20 59 4f 55 | just ri|ght, YOU|
|00001560| 20 53 48 4f 55 4c 44 20 | 4e 45 56 45 52 20 4e 45 | SHOULD |NEVER NE|
|00001570| 45 44 20 54 48 45 53 45 | 0a 41 52 47 55 4d 45 4e |ED THESE|.ARGUMEN|
|00001580| 54 53 20 49 4e 20 59 4f | 55 52 20 4f 57 4e 20 43 |TS IN YO|UR OWN C|
|00001590| 4f 44 45 2e 22 5d 29 0a | 28 64 65 66 76 61 72 20 |ODE."]).|(defvar |
|000015a0| 2a 67 65 6e 73 79 6d 2d | 69 6e 64 65 78 2a 20 30 |*gensym-|index* 0|
|000015b0| 20 22 5c 0a 49 6e 74 65 | 67 65 72 20 75 73 65 64 | "\.Inte|ger used|
|000015c0| 20 62 79 20 67 65 6e 73 | 79 6d 20 74 6f 20 70 72 | by gens|ym to pr|
|000015d0| 6f 64 75 63 65 20 6e 65 | 77 20 6e 61 6d 65 73 2e |oduce ne|w names.|
|000015e0| 22 29 0a 28 64 65 66 76 | 61 72 20 2a 67 65 6e 73 |").(defv|ar *gens|
|000015f0| 79 6d 2d 70 72 65 66 69 | 78 2a 20 22 47 24 24 5f |ym-prefi|x* "G$$_|
|00001600| 22 20 22 5c 0a 4e 61 6d | 65 73 20 67 65 6e 65 72 |" "\.Nam|es gener|
|00001610| 61 74 65 64 20 62 79 20 | 67 65 6e 73 79 6d 20 62 |ated by |gensym b|
|00001620| 65 67 69 6e 20 77 69 74 | 68 20 74 68 69 73 20 73 |egin wit|h this s|
|00001630| 74 72 69 6e 67 20 62 79 | 20 64 65 66 61 75 6c 74 |tring by| default|
|00001640| 2e 22 29 0a 28 66 73 65 | 74 20 27 67 65 6e 73 79 |.").(fse|t 'gensy|
|00001650| 6d 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 70 |m #[(&op|tional p|
|00001660| 72 65 66 69 78 29 20 22 | 08 ac 82 09 10 c2 c3 1c |refix) "|........|
|00001670| 1d 0d ac 97 08 0e 06 50 | 14 0e 06 c7 5c 5c 16 06 |.......P|....\\..|
|00001680| c8 0c 21 ac 6d c9 0c 21 | 89 15 ab 69 0d 2a 87 22 |..!.m..!|...i.*."|
|00001690| 20 5b 70 72 65 66 69 78 | 20 2a 67 65 6e 73 79 6d | [prefix| *gensym|
|000016a0| 2d 70 72 65 66 69 78 2a | 20 6e 69 6c 20 22 22 20 |-prefix*| nil "" |
|000016b0| 6e 65 77 6e 61 6d 65 20 | 6e 65 77 73 79 6d 62 6f |newname |newsymbo|
|000016c0| 6c 20 2a 67 65 6e 73 79 | 6d 2d 69 6e 64 65 78 2a |l *gensy|m-index*|
|000016d0| 20 31 20 69 6e 74 65 72 | 6e 2d 73 6f 66 74 20 6d | 1 inter|n-soft m|
|000016e0| 61 6b 65 2d 73 79 6d 62 | 6f 6c 5d 20 33 20 22 5c |ake-symb|ol] 3 "\|
|000016f0| 0a 47 65 6e 65 72 61 74 | 65 20 61 20 66 72 65 73 |.Generat|e a fres|
|00001700| 68 20 75 6e 69 6e 74 65 | 72 6e 65 64 20 73 79 6d |h uninte|rned sym|
|00001710| 62 6f 6c 2e 0a 54 68 65 | 72 65 20 69 73 20 61 6e |bol..The|re is an|
|00001720| 20 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d | option|al argum|
|00001730| 65 6e 74 2c 20 50 52 45 | 46 49 58 2e 20 20 50 52 |ent, PRE|FIX. PR|
|00001740| 45 46 49 58 20 69 73 20 | 74 68 65 0a 73 74 72 69 |EFIX is |the.stri|
|00001750| 6e 67 20 74 68 61 74 20 | 62 65 67 69 6e 73 20 74 |ng that |begins t|
|00001760| 68 65 20 6e 65 77 20 6e | 61 6d 65 2e 20 4d 6f 73 |he new n|ame. Mos|
|00001770| 74 20 70 65 6f 70 6c 65 | 20 74 61 6b 65 20 6a 75 |t people| take ju|
|00001780| 73 74 20 74 68 65 20 64 | 65 66 61 75 6c 74 2c 0a |st the d|efault,.|
|00001790| 65 78 63 65 70 74 20 77 | 68 65 6e 20 64 65 62 75 |except w|hen debu|
|000017a0| 67 67 69 6e 67 20 6e 65 | 65 64 73 20 73 75 67 67 |gging ne|eds sugg|
|000017b0| 65 73 74 20 6f 74 68 65 | 72 77 69 73 65 2e 22 5d |est othe|rwise."]|
|000017c0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000017d0| c2 c3 23 88 c0 c4 c2 c3 | 23 88 c0 c5 c2 c3 23 88 |..#.....|#.....#.|
|000017e0| c0 c6 c2 c3 23 87 22 20 | 5b 70 75 74 20 63 61 73 |....#." |[put cas|
|000017f0| 65 20 6c 69 73 70 2d 69 | 6e 64 65 6e 74 2d 66 75 |e lisp-i|ndent-fu|
|00001800| 6e 63 74 69 6f 6e 20 31 | 20 65 63 61 73 65 20 77 |nction 1| ecase w|
|00001810| 68 65 6e 20 75 6e 6c 65 | 73 73 5d 20 34 29 0a 28 |hen unle|ss] 4).(|
|00001820| 66 73 65 74 20 27 77 68 | 65 6e 20 27 28 6d 61 63 |fset 'wh|en '(mac|
|00001830| 72 6f 20 2e 20 23 5b 28 | 63 6f 6e 64 69 74 69 6f |ro . #[(|conditio|
|00001840| 6e 20 26 72 65 73 74 20 | 62 6f 64 79 29 20 22 c0 |n &rest |body) ".|
|00001850| c1 c2 0b 44 c4 0d 24 87 | 22 20 5b 6c 69 73 74 2a |...D..$.|" [list*|
|00001860| 20 69 66 20 6e 6f 74 20 | 63 6f 6e 64 69 74 69 6f | if not |conditio|
|00001870| 6e 20 6e 69 6c 20 62 6f | 64 79 5d 20 35 20 22 5c |n nil bo|dy] 5 "\|
|00001880| 0a 28 77 68 65 6e 20 43 | 4f 4e 44 49 54 49 4f 4e |.(when C|ONDITION|
|00001890| 20 2e 20 42 4f 44 59 29 | 20 3d 3e 20 65 76 61 6c | . BODY)| => eval|
|000018a0| 75 61 74 65 20 42 4f 44 | 59 20 69 66 20 43 4f 4e |uate BOD|Y if CON|
|000018b0| 44 49 54 49 4f 4e 20 69 | 73 20 74 72 75 65 2e 22 |DITION i|s true."|
|000018c0| 5d 29 29 0a 28 66 73 65 | 74 20 27 75 6e 6c 65 73 |])).(fse|t 'unles|
|000018d0| 73 20 27 28 6d 61 63 72 | 6f 20 2e 20 23 5b 28 63 |s '(macr|o . #[(c|
|000018e0| 6f 6e 64 69 74 69 6f 6e | 20 26 72 65 73 74 20 62 |ondition| &rest b|
|000018f0| 6f 64 79 29 20 22 c0 c1 | 5c 6e c3 0c 24 87 22 20 |ody) "..|\n..$." |
|00001900| 5b 6c 69 73 74 2a 20 69 | 66 20 63 6f 6e 64 69 74 |[list* i|f condit|
|00001910| 69 6f 6e 20 6e 69 6c 20 | 62 6f 64 79 5d 20 35 20 |ion nil |body] 5 |
|00001920| 22 5c 0a 28 75 6e 6c 65 | 73 73 20 43 4f 4e 44 49 |"\.(unle|ss CONDI|
|00001930| 54 49 4f 4e 20 2e 20 42 | 4f 44 59 29 20 3d 3e 20 |TION . B|ODY) => |
|00001940| 65 76 61 6c 75 61 74 65 | 20 42 4f 44 59 20 69 66 |evaluate| BODY if|
|00001950| 20 43 4f 4e 44 49 54 49 | 4f 4e 20 69 73 20 66 61 | CONDITI|ON is fa|
|00001960| 6c 73 65 2e 22 5d 29 29 | 0a 28 66 73 65 74 20 27 |lse."]))|.(fset '|
|00001970| 63 61 73 65 20 27 28 6d | 61 63 72 6f 20 2e 20 23 |case '(m|acro . #|
|00001980| 5b 28 65 78 70 72 20 26 | 72 65 73 74 20 63 61 73 |[(expr &|rest cas|
|00001990| 65 73 29 20 22 c0 20 19 | c2 0b 09 5c 22 1c c5 09 |es) ". .|...\"...|
|000019a0| 0e 06 44 43 c7 c8 0c 9f | 5c 22 45 2a 87 22 20 5b |..DC....|\"E*." [|
|000019b0| 67 65 6e 74 65 6d 70 20 | 6e 65 77 73 79 6d 20 63 |gentemp |newsym c|
|000019c0| 61 73 65 2d 63 6c 61 75 | 73 69 66 79 20 63 61 73 |ase-clau|sify cas|
|000019d0| 65 73 20 63 6c 61 75 73 | 65 73 20 6c 65 74 20 65 |es claus|es let e|
|000019e0| 78 70 72 20 6c 69 73 74 | 2a 20 63 6f 6e 64 5d 20 |xpr list|* cond] |
|000019f0| 35 20 22 5c 0a 28 63 61 | 73 65 20 45 58 50 52 20 |5 "\.(ca|se EXPR |
|00001a00| 2e 20 43 41 53 45 53 29 | 20 3d 3e 20 65 76 61 6c |. CASES)| => eval|
|00001a10| 73 20 45 58 50 52 2c 20 | 63 68 6f 6f 73 65 73 20 |s EXPR, |chooses |
|00001a20| 66 72 6f 6d 20 43 41 53 | 45 53 20 6f 6e 20 74 68 |from CAS|ES on th|
|00001a30| 61 74 20 76 61 6c 75 65 | 2e 0a 45 58 50 52 20 20 |at value|..EXPR |
|00001a40| 20 2d 3e 20 61 6e 79 20 | 66 6f 72 6d 0a 43 41 53 | -> any |form.CAS|
|00001a50| 45 53 20 20 2d 3e 20 6c | 69 73 74 20 6f 66 20 63 |ES -> l|ist of c|
|00001a60| 6c 61 75 73 65 73 2c 20 | 6e 6f 6e 20 65 6d 70 74 |lauses, |non empt|
|00001a70| 79 0a 43 4c 41 55 53 45 | 20 2d 3e 20 48 45 41 44 |y.CLAUSE| -> HEAD|
|00001a80| 20 2e 20 42 4f 44 59 0a | 48 45 41 44 20 20 20 2d | . BODY.|HEAD -|
|00001a90| 3e 20 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |> t | |
|00001aa0| 3d 20 63 61 74 63 68 20 | 61 6c 6c 2c 20 6d 75 73 |= catch |all, mus|
|00001ab0| 74 20 62 65 20 6c 61 73 | 74 20 63 6c 61 75 73 65 |t be las|t clause|
|00001ac0| 0a 20 20 20 20 20 20 20 | 2d 3e 20 6f 74 68 65 72 |. |-> other|
|00001ad0| 77 69 73 65 20 20 20 20 | 20 3d 20 73 61 6d 65 20 |wise | = same |
|00001ae0| 61 73 20 74 0a 20 20 20 | 20 20 20 20 2d 3e 20 6e |as t. | -> n|
|00001af0| 69 6c 20 20 20 20 20 20 | 20 20 20 20 20 3d 20 69 |il | = i|
|00001b00| 6c 6c 65 67 61 6c 0a 20 | 20 20 20 20 20 20 2d 3e |llegal. | ->|
|00001b10| 20 61 74 6f 6d 20 20 20 | 20 20 20 20 20 20 20 3d | atom | =|
|00001b20| 20 61 63 74 69 76 61 74 | 65 64 20 69 66 20 28 65 | activat|ed if (e|
|00001b30| 71 6c 20 20 45 58 50 52 | 20 48 45 41 44 29 0a 20 |ql EXPR| HEAD). |
|00001b40| 20 20 20 20 20 20 2d 3e | 20 6c 69 73 74 20 6f 66 | ->| list of|
|00001b50| 20 61 74 6f 6d 73 20 3d | 20 61 63 74 69 76 61 74 | atoms =| activat|
|00001b60| 65 64 20 69 66 20 28 6d | 65 6d 62 65 72 20 45 58 |ed if (m|ember EX|
|00001b70| 50 52 20 48 45 41 44 29 | 0a 42 4f 44 59 20 20 20 |PR HEAD)|.BODY |
|00001b80| 2d 3e 20 6c 69 73 74 20 | 6f 66 20 66 6f 72 6d 73 |-> list |of forms|
|00001b90| 2c 20 69 6d 70 6c 69 63 | 69 74 20 50 52 4f 47 4e |, implic|it PROGN|
|00001ba0| 20 69 73 20 62 75 69 6c | 74 20 61 72 6f 75 6e 64 | is buil|t around|
|00001bb0| 20 69 74 2e 0a 45 58 50 | 52 20 69 73 20 65 76 61 | it..EXP|R is eva|
|00001bc0| 6c 75 61 74 65 64 20 6f | 6e 6c 79 20 6f 6e 63 65 |luated o|nly once|
|00001bd0| 2e 22 5d 29 29 0a 28 66 | 73 65 74 20 27 65 63 61 |."])).(f|set 'eca|
|00001be0| 73 65 20 27 28 6d 61 63 | 72 6f 20 2e 20 23 5b 28 |se '(mac|ro . #[(|
|00001bf0| 65 78 70 72 20 26 72 65 | 73 74 20 63 61 73 65 73 |expr &re|st cases|
|00001c00| 29 20 22 c0 20 19 c2 0b | 09 5c 22 1c c5 0c 21 c6 |) ". ...|.\"...!.|
|00001c10| 3d ab 84 c7 c8 21 88 c6 | c7 c9 ca 0e 0b 44 cc 09 |=....!..|.....D..|
|00001c20| 44 46 44 0c 42 14 cd 09 | 0e 0b 44 43 ce cf 0c 9f |DFD.B...|..DC....|
|00001c30| 5c 22 45 2a 87 22 20 5b | 67 65 6e 74 65 6d 70 20 |\"E*." [|gentemp |
|00001c40| 6e 65 77 73 79 6d 20 63 | 61 73 65 2d 63 6c 61 75 |newsym c|ase-clau|
|00001c50| 73 69 66 79 20 63 61 73 | 65 73 20 63 6c 61 75 73 |sify cas|es claus|
|00001c60| 65 73 20 63 61 61 72 20 | 74 20 65 72 72 6f 72 20 |es caar |t error |
|00001c70| 22 4e 6f 20 63 6c 61 75 | 73 65 2d 68 65 61 64 20 |"No clau|se-head |
|00001c80| 73 68 6f 75 6c 64 20 62 | 65 20 60 74 27 20 6f 72 |should b|e `t' or|
|00001c90| 20 60 6f 74 68 65 72 77 | 69 73 65 27 20 66 6f 72 | `otherw|ise' for|
|00001ca0| 20 60 65 63 61 73 65 27 | 22 20 22 65 63 61 73 65 | `ecase'|" "ecase|
|00001cb0| 20 6f 6e 20 25 73 20 3d | 20 25 73 20 66 61 69 6c | on %s =| %s fail|
|00001cc0| 65 64 20 74 6f 20 74 61 | 6b 65 20 61 6e 79 20 62 |ed to ta|ke any b|
|00001cd0| 72 61 6e 63 68 2e 22 20 | 71 75 6f 74 65 20 65 78 |ranch." |quote ex|
|00001ce0| 70 72 20 70 72 69 6e 31 | 2d 74 6f 2d 73 74 72 69 |pr prin1|-to-stri|
|00001cf0| 6e 67 20 6c 65 74 20 6c | 69 73 74 2a 20 63 6f 6e |ng let l|ist* con|
|00001d00| 64 5d 20 36 20 22 5c 0a | 28 65 63 61 73 65 20 45 |d] 6 "\.|(ecase E|
|00001d10| 58 50 52 20 2e 20 43 41 | 53 45 53 29 20 3d 3e 20 |XPR . CA|SES) => |
|00001d20| 6c 69 6b 65 20 60 63 61 | 73 65 27 2c 20 62 75 74 |like `ca|se', but|
|00001d30| 20 65 72 72 6f 72 20 69 | 66 20 6e 6f 20 63 61 73 | error i|f no cas|
|00001d40| 65 20 66 69 74 73 2e 0a | 60 74 27 2d 63 6c 61 75 |e fits..|`t'-clau|
|00001d50| 73 65 73 20 61 72 65 20 | 6e 6f 74 20 61 6c 6c 6f |ses are |not allo|
|00001d60| 77 65 64 2e 22 5d 29 29 | 0a 28 66 73 65 74 20 27 |wed."]))|.(fset '|
|00001d70| 63 61 73 65 2d 63 6c 61 | 75 73 69 66 79 20 23 5b |case-cla|usify #[|
|00001d80| 28 63 61 73 65 73 20 6e | 65 77 73 79 6d 29 20 22 |(cases n|ewsym) "|
|00001d90| 08 19 08 41 1a 08 40 1b | c4 1d c6 09 21 ac f0 0b |...A..@.|....!...|
|00001da0| 40 0b 41 1e 07 89 1e 08 | ac 89 c9 ca cb 0b 21 5c |@.A.....|......!\|
|00001db0| 22 88 aa d0 0e 08 cc 3d | ac 86 0e 08 cd 3d ab 92 |"......=|.....=..|
|00001dc0| c6 5c 6e 21 ac 84 c9 ce | 21 88 cc 0e 07 42 0d 42 |.\n!....|!....B.B|
|00001dd0| 15 aa b2 0e 08 3a ac 90 | cf 0e 10 d1 0e 08 44 45 |.....:..|......DE|
|00001de0| 0e 07 42 0d 42 15 aa 9d | 0e 08 3c ab 90 d2 0e 10 |..B.B...|..<.....|
|00001df0| d1 0e 08 44 45 0e 07 42 | 0d 42 15 aa 88 c9 d3 cb |...DE..B|.B......|
|00001e00| 0e 08 21 5c 22 88 2a 09 | 41 11 5c 6e 41 12 09 40 |..!\".*.|A.\nA..@|
|00001e10| 13 aa 0b 0d 2c 87 22 20 | 5b 63 61 73 65 73 20 63 |....,." |[cases c|
|00001e20| 75 72 72 65 6e 74 70 6f | 73 20 6e 65 78 74 70 6f |urrentpo|s nextpo|
|00001e30| 73 20 63 75 72 63 6c 61 | 75 73 65 20 6e 69 6c 20 |s curcla|use nil |
|00001e40| 72 65 73 75 6c 74 20 65 | 6e 64 70 20 62 6f 64 79 |result e|ndp body|
|00001e50| 20 68 65 61 64 20 65 72 | 72 6f 72 20 22 43 61 73 | head er|ror "Cas|
|00001e60| 65 20 63 6c 61 75 73 65 | 73 20 63 61 6e 6e 6f 74 |e clause|s cannot|
|00001e70| 20 68 61 76 65 20 6e 75 | 6c 6c 20 68 65 61 64 73 | have nu|ll heads|
|00001e80| 3a 20 60 25 73 27 22 20 | 70 72 69 6e 31 2d 74 6f |: `%s'" |prin1-to|
|00001e90| 2d 73 74 72 69 6e 67 20 | 74 20 6f 74 68 65 72 77 |-string |t otherw|
|00001ea0| 69 73 65 20 22 43 6c 61 | 75 73 65 20 77 69 74 68 |ise "Cla|use with|
|00001eb0| 20 60 74 27 20 6f 72 20 | 60 6f 74 68 65 72 77 69 | `t' or |`otherwi|
|00001ec0| 73 65 27 20 68 65 61 64 | 20 6d 75 73 74 20 62 65 |se' head| must be|
|00001ed0| 20 6c 61 73 74 22 20 65 | 71 6c 20 6e 65 77 73 79 | last" e|ql newsy|
|00001ee0| 6d 20 71 75 6f 74 65 20 | 63 6c 2d 6d 65 6d 62 65 |m quote |cl-membe|
|00001ef0| 72 20 22 44 6f 6e 27 74 | 20 6b 6e 6f 77 20 68 6f |r "Don't| know ho|
|00001f00| 77 20 74 6f 20 70 61 72 | 73 65 20 63 61 73 65 20 |w to par|se case |
|00001f10| 63 6c 61 75 73 65 20 60 | 25 73 27 2e 22 5d 20 35 |clause `|%s'."] 5|
|00001f20| 20 22 5c 0a 43 41 53 45 | 2d 43 4c 41 55 53 49 46 | "\.CASE|-CLAUSIF|
|00001f30| 59 20 43 41 53 45 53 20 | 4e 45 57 53 59 4d 20 3d |Y CASES |NEWSYM =|
|00001f40| 3e 20 63 6c 61 75 73 65 | 73 20 66 6f 72 20 61 20 |> clause|s for a |
|00001f50| 27 63 6f 6e 64 27 0a 43 | 6f 6e 76 65 72 74 73 20 |'cond'.C|onverts |
|00001f60| 74 68 65 20 43 41 53 45 | 53 20 6f 66 20 61 20 5b |the CASE|S of a [|
|00001f70| 65 5d 63 61 73 65 20 6d | 61 63 72 6f 20 69 6e 74 |e]case m|acro int|
|00001f80| 6f 20 63 6f 6e 64 20 63 | 6c 61 75 73 65 73 20 74 |o cond c|lauses t|
|00001f90| 6f 20 62 65 0a 65 76 61 | 6c 75 61 74 65 64 20 69 |o be.eva|luated i|
|00001fa0| 6e 73 69 64 65 20 61 20 | 6c 65 74 20 74 68 61 74 |nside a |let that|
|00001fb0| 20 62 69 6e 64 73 20 4e | 45 57 53 59 4d 2e 20 20 | binds N|EWSYM. |
|00001fc0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 63 6c 61 75 |Returns |the clau|
|00001fd0| 73 65 73 20 69 6e 0a 72 | 65 76 65 72 73 65 20 6f |ses in.r|everse o|
|00001fe0| 72 64 65 72 2e 22 5d 29 | 0a 28 62 79 74 65 2d 63 |rder."])|.(byte-c|
|00001ff0| 6f 64 65 20 22 c0 c1 c2 | c3 23 88 c0 c4 c2 c3 23 |ode "...|.#.....#|
|00002000| 88 c0 c5 c2 c6 23 88 c0 | c7 c2 c6 23 88 c0 c8 c2 |.....#..|...#....|
|00002010| c6 23 88 c0 c9 c2 c6 23 | 87 22 20 5b 70 75 74 20 |.#.....#|." [put |
|00002020| 64 6f 20 6c 69 73 70 2d | 69 6e 64 65 6e 74 2d 66 |do lisp-|indent-f|
|00002030| 75 6e 63 74 69 6f 6e 20 | 32 20 64 6f 2a 20 64 6f |unction |2 do* do|
|00002040| 6c 69 73 74 20 31 20 64 | 6f 74 69 6d 65 73 20 64 |list 1 d|otimes d|
|00002050| 6f 2d 73 79 6d 62 6f 6c | 73 20 64 6f 2d 61 6c 6c |o-symbol|s do-all|
|00002060| 2d 73 79 6d 62 6f 6c 73 | 5d 20 34 29 0a 28 66 73 |-symbols|] 4).(fs|
|00002070| 65 74 20 27 64 6f 20 27 | 28 6d 61 63 72 6f 20 2e |et 'do '|(macro .|
|00002080| 20 23 5b 28 73 74 65 70 | 66 6f 72 6d 73 20 65 6e | #[(step|forms en|
|00002090| 64 66 6f 72 6d 73 20 26 | 72 65 73 74 20 62 6f 64 |dforms &|rest bod|
|000020a0| 79 29 20 22 c0 09 21 ab | 84 c2 0b 21 88 c4 09 21 |y) "..!.|...!...!|
|000020b0| c5 09 21 0b 40 0b 41 1e | 06 1e 07 1e 08 1e 09 ca |..!.@.A.|........|
|000020c0| 0e 09 cb cc 0e 07 44 cd | 0e 0e 0e 08 5c 22 42 42 |......D.|....\"BB|
|000020d0| cd 0e 06 21 2c 42 42 42 | 87 22 20 5b 63 68 65 63 |...!,BBB|." [chec|
|000020e0| 6b 2d 64 6f 2d 73 74 65 | 70 66 6f 72 6d 73 20 73 |k-do-ste|pforms s|
|000020f0| 74 65 70 66 6f 72 6d 73 | 20 63 68 65 63 6b 2d 64 |tepforms| check-d|
|00002100| 6f 2d 65 6e 64 66 6f 72 | 6d 73 20 65 6e 64 66 6f |o-endfor|ms endfo|
|00002110| 72 6d 73 20 65 78 74 72 | 61 63 74 2d 64 6f 2d 69 |rms extr|act-do-i|
|00002120| 6e 69 74 73 20 65 78 74 | 72 61 63 74 2d 64 6f 2d |nits ext|ract-do-|
|00002130| 73 74 65 70 73 20 65 6e | 64 62 6f 64 79 20 65 6e |steps en|dbody en|
|00002140| 64 63 6f 6e 64 20 73 74 | 65 70 6c 69 73 74 20 69 |dcond st|eplist i|
|00002150| 6e 69 74 6c 69 73 74 20 | 6c 65 74 20 77 68 69 6c |nitlist |let whil|
|00002160| 65 20 6e 6f 74 20 61 70 | 70 65 6e 64 20 62 6f 64 |e not ap|pend bod|
|00002170| 79 5d 20 37 20 22 5c 0a | 28 64 6f 20 53 54 45 50 |y] 7 "\.|(do STEP|
|00002180| 46 4f 52 4d 53 20 45 4e | 44 46 4f 52 4d 53 20 2e |FORMS EN|DFORMS .|
|00002190| 20 42 4f 44 59 29 3a 20 | 49 74 65 72 61 74 65 20 | BODY): |Iterate |
|000021a0| 42 4f 44 59 2c 20 73 74 | 65 70 70 69 6e 67 20 73 |BODY, st|epping s|
|000021b0| 6f 6d 65 20 6c 6f 63 61 | 6c 20 76 61 72 69 61 62 |ome loca|l variab|
|000021c0| 6c 65 73 2e 0a 53 54 45 | 50 46 4f 52 4d 53 20 6d |les..STE|PFORMS m|
|000021d0| 75 73 74 20 62 65 20 61 | 20 6c 69 73 74 20 6f 66 |ust be a| list of|
|000021e0| 20 73 79 6d 62 6f 6c 73 | 20 6f 72 20 6c 69 73 74 | symbols| or list|
|000021f0| 73 2e 20 20 49 6e 20 74 | 68 65 20 73 65 63 6f 6e |s. In t|he secon|
|00002200| 64 20 63 61 73 65 2c 20 | 74 68 65 0a 6c 69 73 74 |d case, |the.list|
|00002210| 73 20 6d 75 73 74 20 73 | 74 61 72 74 20 77 69 74 |s must s|tart wit|
|00002220| 68 20 61 20 73 79 6d 62 | 6f 6c 20 61 6e 64 20 63 |h a symb|ol and c|
|00002230| 6f 6e 74 61 69 6e 20 75 | 70 20 74 6f 20 74 77 6f |ontain u|p to two|
|00002240| 20 6d 6f 72 65 20 66 6f | 72 6d 73 2e 20 49 6e 0a | more fo|rms. In.|
|00002250| 74 68 65 20 53 54 45 50 | 46 4f 52 4d 53 2c 20 61 |the STEP|FORMS, a|
|00002260| 20 73 79 6d 62 6f 6c 20 | 69 73 20 74 68 65 20 73 | symbol |is the s|
|00002270| 61 6d 65 20 61 73 20 61 | 20 28 73 79 6d 62 6f 6c |ame as a| (symbol|
|00002280| 29 2e 20 20 54 68 65 20 | 6f 74 68 65 72 20 32 20 |). The |other 2 |
|00002290| 66 6f 72 6d 73 0a 61 72 | 65 20 74 68 65 20 69 6e |forms.ar|e the in|
|000022a0| 69 74 69 61 6c 20 76 61 | 6c 75 65 20 28 64 65 66 |itial va|lue (def|
|000022b0| 2e 20 4e 49 4c 29 20 61 | 6e 64 20 74 68 65 20 66 |. NIL) a|nd the f|
|000022c0| 6f 72 6d 20 74 6f 20 73 | 74 65 70 20 28 64 65 66 |orm to s|tep (def|
|000022d0| 2e 20 69 74 73 65 6c 66 | 29 2e 0a 54 68 65 20 76 |. itself|)..The v|
|000022e0| 61 6c 75 65 73 20 75 73 | 65 64 20 62 79 20 69 6e |alues us|ed by in|
|000022f0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 61 6e 64 |itializa|tion and|
|00002300| 20 73 74 65 70 70 69 6e | 67 20 61 72 65 20 63 6f | steppin|g are co|
|00002310| 6d 70 75 74 65 64 20 69 | 6e 20 70 61 72 61 6c 6c |mputed i|n parall|
|00002320| 65 6c 2e 0a 54 68 65 20 | 45 4e 44 46 4f 52 4d 53 |el..The |ENDFORMS|
|00002330| 20 61 72 65 20 61 20 6c | 69 73 74 20 28 43 4f 4e | are a l|ist (CON|
|00002340| 44 49 54 49 4f 4e 20 2e | 20 45 4e 44 42 4f 44 59 |DITION .| ENDBODY|
|00002350| 29 2e 20 20 49 66 20 74 | 68 65 20 43 4f 4e 44 49 |). If t|he CONDI|
|00002360| 54 49 4f 4e 0a 65 76 61 | 6c 75 61 74 65 73 20 74 |TION.eva|luates t|
|00002370| 6f 20 74 72 75 65 20 69 | 6e 20 61 6e 79 20 69 74 |o true i|n any it|
|00002380| 65 72 61 74 69 6f 6e 2c | 20 45 4e 44 42 4f 44 59 |eration,| ENDBODY|
|00002390| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 20 61 6e | is eval|uated an|
|000023a0| 64 20 74 68 65 20 6c 61 | 73 74 0a 66 6f 72 6d 20 |d the la|st.form |
|000023b0| 69 6e 20 69 74 20 69 73 | 20 72 65 74 75 72 6e 65 |in it is| returne|
|000023c0| 64 2e 0a 54 68 65 20 42 | 4f 44 59 20 28 77 68 69 |d..The B|ODY (whi|
|000023d0| 63 68 20 6d 61 79 20 62 | 65 20 65 6d 70 74 79 29 |ch may b|e empty)|
|000023e0| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 20 61 74 | is eval|uated at|
|000023f0| 20 65 76 65 72 79 20 69 | 74 65 72 61 74 69 6f 6e | every i|teration|
|00002400| 2c 20 77 69 74 68 0a 74 | 68 65 20 73 79 6d 62 6f |, with.t|he symbo|
|00002410| 6c 73 20 6f 66 20 74 68 | 65 20 53 54 45 50 46 4f |ls of th|e STEPFO|
|00002420| 52 4d 53 20 62 6f 75 6e | 64 20 74 6f 20 74 68 65 |RMS boun|d to the|
|00002430| 20 69 6e 69 74 69 61 6c | 20 6f 72 20 73 74 65 70 | initial| or step|
|00002440| 70 65 64 20 76 61 6c 75 | 65 73 2e 22 5d 29 29 0a |ped valu|es."])).|
|00002450| 28 66 73 65 74 20 27 64 | 6f 2a 20 27 28 6d 61 63 |(fset 'd|o* '(mac|
|00002460| 72 6f 20 2e 20 23 5b 28 | 73 74 65 70 66 6f 72 6d |ro . #[(|stepform|
|00002470| 73 20 65 6e 64 66 6f 72 | 6d 73 20 26 72 65 73 74 |s endfor|ms &rest|
|00002480| 20 62 6f 64 79 29 20 22 | c0 09 21 ab 84 c2 0b 21 | body) "|..!....!|
|00002490| 88 c4 09 21 c5 09 21 0b | 40 0b 41 1e 06 1e 07 1e |...!..!.|@.A.....|
|000024a0| 08 1e 09 ca 0e 09 cb cc | 0e 07 44 cd 0e 0e 0e 08 |........|..D.....|
|000024b0| 5c 22 42 42 cd 0e 06 21 | 2c 42 42 42 87 22 20 5b |\"BB...!|,BBB." [|
|000024c0| 63 68 65 63 6b 2d 64 6f | 2d 73 74 65 70 66 6f 72 |check-do|-stepfor|
|000024d0| 6d 73 20 73 74 65 70 66 | 6f 72 6d 73 20 63 68 65 |ms stepf|orms che|
|000024e0| 63 6b 2d 64 6f 2d 65 6e | 64 66 6f 72 6d 73 20 65 |ck-do-en|dforms e|
|000024f0| 6e 64 66 6f 72 6d 73 20 | 65 78 74 72 61 63 74 2d |ndforms |extract-|
|00002500| 64 6f 2d 69 6e 69 74 73 | 20 65 78 74 72 61 63 74 |do-inits| extract|
|00002510| 2d 64 6f 2a 2d 73 74 65 | 70 73 20 65 6e 64 62 6f |-do*-ste|ps endbo|
|00002520| 64 79 20 65 6e 64 63 6f | 6e 64 20 73 74 65 70 6c |dy endco|nd stepl|
|00002530| 69 73 74 20 69 6e 69 74 | 6c 69 73 74 20 6c 65 74 |ist init|list let|
|00002540| 2a 20 77 68 69 6c 65 20 | 6e 6f 74 20 61 70 70 65 |* while |not appe|
|00002550| 6e 64 20 62 6f 64 79 5d | 20 37 20 22 5c 0a 60 64 |nd body]| 7 "\.`d|
|00002560| 6f 2a 27 20 69 73 20 74 | 6f 20 60 64 6f 27 20 61 |o*' is t|o `do' a|
|00002570| 73 20 60 6c 65 74 2a 27 | 20 69 73 20 74 6f 20 60 |s `let*'| is to `|
|00002580| 6c 65 74 27 2e 0a 53 54 | 45 50 46 4f 52 4d 53 20 |let'..ST|EPFORMS |
|00002590| 6d 75 73 74 20 62 65 20 | 61 20 6c 69 73 74 20 6f |must be |a list o|
|000025a0| 66 20 73 79 6d 62 6f 6c | 73 20 6f 72 20 6c 69 73 |f symbol|s or lis|
|000025b0| 74 73 2e 20 20 49 6e 20 | 74 68 65 20 73 65 63 6f |ts. In |the seco|
|000025c0| 6e 64 20 63 61 73 65 2c | 20 74 68 65 0a 6c 69 73 |nd case,| the.lis|
|000025d0| 74 73 20 6d 75 73 74 20 | 73 74 61 72 74 20 77 69 |ts must |start wi|
|000025e0| 74 68 20 61 20 73 79 6d | 62 6f 6c 20 61 6e 64 20 |th a sym|bol and |
|000025f0| 63 6f 6e 74 61 69 6e 20 | 75 70 20 74 6f 20 74 77 |contain |up to tw|
|00002600| 6f 20 6d 6f 72 65 20 66 | 6f 72 6d 73 2e 20 49 6e |o more f|orms. In|
|00002610| 0a 74 68 65 20 53 54 45 | 50 46 4f 52 4d 53 2c 20 |.the STE|PFORMS, |
|00002620| 61 20 73 79 6d 62 6f 6c | 20 69 73 20 74 68 65 20 |a symbol| is the |
|00002630| 73 61 6d 65 20 61 73 20 | 61 20 28 73 79 6d 62 6f |same as |a (symbo|
|00002640| 6c 29 2e 20 20 54 68 65 | 20 6f 74 68 65 72 20 32 |l). The| other 2|
|00002650| 20 66 6f 72 6d 73 0a 61 | 72 65 20 74 68 65 20 69 | forms.a|re the i|
|00002660| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 20 28 64 65 |nitial v|alue (de|
|00002670| 66 2e 20 4e 49 4c 29 20 | 61 6e 64 20 74 68 65 20 |f. NIL) |and the |
|00002680| 66 6f 72 6d 20 74 6f 20 | 73 74 65 70 20 28 64 65 |form to |step (de|
|00002690| 66 2e 20 69 74 73 65 6c | 66 29 2e 0a 49 6e 69 74 |f. itsel|f)..Init|
|000026a0| 69 61 6c 69 7a 61 74 69 | 6f 6e 73 20 61 6e 64 20 |ializati|ons and |
|000026b0| 73 74 65 70 70 69 6e 67 | 73 20 61 72 65 20 64 6f |stepping|s are do|
|000026c0| 6e 65 20 69 6e 20 74 68 | 65 20 73 65 71 75 65 6e |ne in th|e sequen|
|000026d0| 63 65 20 74 68 65 79 20 | 61 72 65 20 77 72 69 74 |ce they |are writ|
|000026e0| 74 65 6e 2e 0a 54 68 65 | 20 45 4e 44 46 4f 52 4d |ten..The| ENDFORM|
|000026f0| 53 20 61 72 65 20 61 20 | 6c 69 73 74 20 28 43 4f |S are a |list (CO|
|00002700| 4e 44 49 54 49 4f 4e 20 | 2e 20 45 4e 44 42 4f 44 |NDITION |. ENDBOD|
|00002710| 59 29 2e 20 20 49 66 20 | 74 68 65 20 43 4f 4e 44 |Y). If |the COND|
|00002720| 49 54 49 4f 4e 0a 65 76 | 61 6c 75 61 74 65 73 20 |ITION.ev|aluates |
|00002730| 74 6f 20 74 72 75 65 20 | 69 6e 20 61 6e 79 20 69 |to true |in any i|
|00002740| 74 65 72 61 74 69 6f 6e | 2c 20 45 4e 44 42 4f 44 |teration|, ENDBOD|
|00002750| 59 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |Y is eva|luated a|
|00002760| 6e 64 20 74 68 65 20 6c | 61 73 74 0a 66 6f 72 6d |nd the l|ast.form|
|00002770| 20 69 6e 20 69 74 20 69 | 73 20 72 65 74 75 72 6e | in it i|s return|
|00002780| 65 64 2e 0a 54 68 65 20 | 42 4f 44 59 20 28 77 68 |ed..The |BODY (wh|
|00002790| 69 63 68 20 6d 61 79 20 | 62 65 20 65 6d 70 74 79 |ich may |be empty|
|000027a0| 29 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |) is eva|luated a|
|000027b0| 74 20 65 76 65 72 79 20 | 69 74 65 72 61 74 69 6f |t every |iteratio|
|000027c0| 6e 2c 20 77 69 74 68 0a | 74 68 65 20 73 79 6d 62 |n, with.|the symb|
|000027d0| 6f 6c 73 20 6f 66 20 74 | 68 65 20 53 54 45 50 46 |ols of t|he STEPF|
|000027e0| 4f 52 4d 53 20 62 6f 75 | 6e 64 20 74 6f 20 74 68 |ORMS bou|nd to th|
|000027f0| 65 20 69 6e 69 74 69 61 | 6c 20 6f 72 20 73 74 65 |e initia|l or ste|
|00002800| 70 70 65 64 20 76 61 6c | 75 65 73 2e 22 5d 29 29 |pped val|ues."]))|
|00002810| 0a 28 66 73 65 74 20 27 | 63 68 65 63 6b 2d 64 6f |.(fset '|check-do|
|00002820| 2d 73 74 65 70 66 6f 72 | 6d 73 20 23 5b 28 66 6f |-stepfor|ms #[(fo|
|00002830| 72 6d 73 29 20 22 08 3c | ac 87 c1 c2 c3 08 21 5c |rms) ".<|......!\|
|00002840| 22 87 c4 c5 08 5c 22 87 | 22 20 5b 66 6f 72 6d 73 |"....\".|" [forms|
|00002850| 20 65 72 72 6f 72 20 22 | 49 6e 69 74 2f 53 74 65 | error "|Init/Ste|
|00002860| 70 20 66 6f 72 6d 20 66 | 6f 72 20 64 6f 5b 2a 5d |p form f|or do[*]|
|00002870| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 20 6c 69 73 | should |be a lis|
|00002880| 74 2c 20 6e 6f 74 20 60 | 25 73 27 22 20 70 72 69 |t, not `|%s'" pri|
|00002890| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 20 6d 61 70 |n1-to-st|ring map|
|000028a0| 63 61 72 20 23 5b 28 65 | 6e 74 72 79 29 20 22 08 |car #[(e|ntry) ".|
|000028b0| 39 ac 8f 08 3c ab 8d 08 | 40 39 ab 88 08 47 c1 57 |9...<...|@9...G.W|
|000028c0| ab 82 c2 87 c3 c4 c5 08 | 21 5c 22 87 22 20 5b 65 |........|!\"." [e|
|000028d0| 6e 74 72 79 20 34 20 74 | 20 65 72 72 6f 72 20 22 |ntry 4 t| error "|
|000028e0| 49 6e 69 74 2f 53 74 65 | 70 20 6d 75 73 74 20 62 |Init/Ste|p must b|
|000028f0| 65 20 73 79 6d 62 6f 6c | 20 6f 72 20 28 73 79 6d |e symbol| or (sym|
|00002900| 62 6f 6c 20 5b 69 6e 69 | 74 20 5b 73 74 65 70 5d |bol [ini|t [step]|
|00002910| 5d 29 2c 20 6e 6f 74 20 | 60 25 73 27 22 20 70 72 |]), not |`%s'" pr|
|00002920| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 5d 20 34 |in1-to-s|tring] 4|
|00002930| 5d 5d 20 34 20 22 5c 0a | 54 72 75 65 20 69 66 20 |]] 4 "\.|True if |
|00002940| 46 4f 52 4d 53 20 69 73 | 20 61 20 76 61 6c 69 64 |FORMS is| a valid|
|00002950| 20 73 74 65 70 66 6f 72 | 6d 73 20 66 6f 72 20 74 | stepfor|ms for t|
|00002960| 68 65 20 64 6f 5b 2a 5d | 20 6d 61 63 72 6f 20 28 |he do[*]| macro (|
|00002970| 71 2e 76 2e 29 22 5d 29 | 0a 28 66 73 65 74 20 27 |q.v.)"])|.(fset '|
|00002980| 63 68 65 63 6b 2d 64 6f | 2d 65 6e 64 66 6f 72 6d |check-do|-endform|
|00002990| 73 20 23 5b 28 66 6f 72 | 6d 73 29 20 22 08 3c ab |s #[(for|ms) ".<.|
|000029a0| 82 c1 87 c2 c3 c4 08 21 | 5c 22 87 22 20 5b 66 6f |.......!|\"." [fo|
|000029b0| 72 6d 73 20 74 20 65 72 | 72 6f 72 20 22 54 65 72 |rms t er|ror "Ter|
|000029c0| 6d 69 6e 61 74 69 6f 6e | 20 66 6f 72 6d 20 66 6f |mination| form fo|
|000029d0| 72 20 64 6f 20 6d 61 63 | 72 6f 20 73 68 6f 75 6c |r do mac|ro shoul|
|000029e0| 64 20 62 65 20 61 20 6c | 69 73 74 2c 20 6e 6f 74 |d be a l|ist, not|
|000029f0| 20 60 25 73 27 22 20 70 | 72 69 6e 31 2d 74 6f 2d | `%s'" p|rin1-to-|
|00002a00| 73 74 72 69 6e 67 5d 20 | 34 20 22 5c 0a 54 72 75 |string] |4 "\.Tru|
|00002a10| 65 20 69 66 20 46 4f 52 | 4d 53 20 69 73 20 61 20 |e if FOR|MS is a |
|00002a20| 76 61 6c 69 64 20 65 6e | 64 66 6f 72 6d 73 20 66 |valid en|dforms f|
|00002a30| 6f 72 20 74 68 65 20 64 | 6f 5b 2a 5d 20 6d 61 63 |or the d|o[*] mac|
|00002a40| 72 6f 20 28 71 2e 76 2e | 29 22 5d 29 0a 28 66 73 |ro (q.v.|)"]).(fs|
|00002a50| 65 74 20 27 65 78 74 72 | 61 63 74 2d 64 6f 2d 69 |et 'extr|act-do-i|
|00002a60| 6e 69 74 73 20 23 5b 28 | 66 6f 72 6d 73 29 20 22 |nits #[(|forms) "|
|00002a70| c0 c1 5c 6e 5c 22 87 22 | 20 5b 6d 61 70 63 61 72 |..\n\"."| [mapcar|
|00002a80| 20 23 5b 28 65 6e 74 72 | 79 29 20 22 08 39 ab 84 | #[(entr|y) ".9..|
|00002a90| 08 c1 44 87 08 3c ad 86 | 08 40 c2 08 21 44 87 22 |..D..<..|.@..!D."|
|00002aa0| 20 5b 65 6e 74 72 79 20 | 6e 69 6c 20 63 61 64 72 | [entry |nil cadr|
|00002ab0| 5d 20 33 5d 20 66 6f 72 | 6d 73 5d 20 33 20 22 5c |] 3] for|ms] 3 "\|
|00002ac0| 0a 52 65 74 75 72 6e 73 | 20 61 20 6c 69 73 74 20 |.Returns| a list |
|00002ad0| 6f 66 20 74 68 65 20 69 | 6e 69 74 69 61 6c 69 7a |of the i|nitializ|
|00002ae0| 61 74 69 6f 6e 73 20 28 | 66 6f 72 20 64 6f 29 20 |ations (|for do) |
|00002af0| 69 6e 20 46 4f 52 4d 53 | 0a 2d 61 20 73 74 65 70 |in FORMS|.-a step|
|00002b00| 66 6f 72 6d 73 2c 20 73 | 65 65 20 74 68 65 20 64 |forms, s|ee the d|
|00002b10| 6f 20 6d 61 63 72 6f 2d | 2e 20 46 6f 72 6d 73 20 |o macro-|. Forms |
|00002b20| 69 73 20 61 73 73 75 6d | 65 64 20 73 79 6e 74 61 |is assum|ed synta|
|00002b30| 63 74 69 63 61 6c 6c 79 | 20 76 61 6c 69 64 2e 22 |ctically| valid."|
|00002b40| 5d 29 0a 28 66 73 65 74 | 20 27 65 78 74 72 61 63 |]).(fset| 'extrac|
|00002b50| 74 2d 64 6f 2d 73 74 65 | 70 73 20 23 5b 28 66 6f |t-do-ste|ps #[(fo|
|00002b60| 72 6d 73 29 20 22 c0 c1 | 5c 6e 21 42 43 87 22 20 |rms) "..|\n!BC." |
|00002b70| 5b 70 73 65 74 71 20 73 | 65 6c 65 63 74 2d 73 74 |[psetq s|elect-st|
|00002b80| 65 70 70 69 6e 67 2d 66 | 6f 72 6d 73 20 66 6f 72 |epping-f|orms for|
|00002b90| 6d 73 5d 20 33 20 22 5c | 0a 45 58 54 52 41 43 54 |ms] 3 "\|.EXTRACT|
|00002ba0| 2d 44 4f 2d 53 54 45 50 | 53 20 46 4f 52 4d 53 20 |-DO-STEP|S FORMS |
|00002bb0| 3d 3e 20 61 6e 20 73 2d | 65 78 70 72 0a 46 4f 52 |=> an s-|expr.FOR|
|00002bc0| 4d 53 20 69 73 20 74 68 | 65 20 73 74 65 70 66 6f |MS is th|e stepfo|
|00002bd0| 72 6d 73 20 70 61 72 74 | 20 6f 66 20 61 20 44 4f |rms part| of a DO|
|00002be0| 20 6d 61 63 72 6f 20 28 | 71 2e 76 2e 29 2e 20 20 | macro (|q.v.). |
|00002bf0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 0a 63 6f |This fun|ction.co|
|00002c00| 6e 73 74 72 75 63 74 73 | 20 61 6e 20 73 2d 65 78 |nstructs| an s-ex|
|00002c10| 70 72 65 73 73 69 6f 6e | 20 74 68 61 74 20 64 6f |pression| that do|
|00002c20| 65 73 20 74 68 65 20 73 | 74 65 70 70 69 6e 67 20 |es the s|tepping |
|00002c30| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 61 6e |at the e|nd of an|
|00002c40| 0a 69 74 65 72 61 74 69 | 6f 6e 2e 22 5d 29 0a 28 |.iterati|on."]).(|
|00002c50| 66 73 65 74 20 27 65 78 | 74 72 61 63 74 2d 64 6f |fset 'ex|tract-do|
|00002c60| 2a 2d 73 74 65 70 73 20 | 23 5b 28 66 6f 72 6d 73 |*-steps |#[(forms|
|00002c70| 29 20 22 c0 c1 5c 6e 21 | 42 43 87 22 20 5b 73 65 |) "..\n!|BC." [se|
|00002c80| 74 71 20 73 65 6c 65 63 | 74 2d 73 74 65 70 70 69 |tq selec|t-steppi|
|00002c90| 6e 67 2d 66 6f 72 6d 73 | 20 66 6f 72 6d 73 5d 20 |ng-forms| forms] |
|00002ca0| 33 20 22 5c 0a 45 58 54 | 52 41 43 54 2d 44 4f 2a |3 "\.EXT|RACT-DO*|
|00002cb0| 2d 53 54 45 50 53 20 46 | 4f 52 4d 53 20 3d 3e 20 |-STEPS F|ORMS => |
|00002cc0| 61 6e 20 73 2d 65 78 70 | 72 0a 46 4f 52 4d 53 20 |an s-exp|r.FORMS |
|00002cd0| 69 73 20 74 68 65 20 73 | 74 65 70 66 6f 72 6d 73 |is the s|tepforms|
|00002ce0| 20 70 61 72 74 20 6f 66 | 20 61 20 44 4f 2a 20 6d | part of| a DO* m|
|00002cf0| 61 63 72 6f 20 28 71 2e | 76 2e 29 2e 20 20 54 68 |acro (q.|v.). Th|
|00002d00| 69 73 20 66 75 6e 63 74 | 69 6f 6e 0a 63 6f 6e 73 |is funct|ion.cons|
|00002d10| 74 72 75 63 74 73 20 61 | 6e 20 73 2d 65 78 70 72 |tructs a|n s-expr|
|00002d20| 65 73 73 69 6f 6e 20 74 | 68 61 74 20 64 6f 65 73 |ession t|hat does|
|00002d30| 20 74 68 65 20 73 74 65 | 70 70 69 6e 67 20 61 74 | the ste|pping at|
|00002d40| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 61 6e 0a 69 | the end| of an.i|
|00002d50| 74 65 72 61 74 69 6f 6e | 2e 22 5d 29 0a 28 66 73 |teration|."]).(fs|
|00002d60| 65 74 20 27 73 65 6c 65 | 63 74 2d 73 74 65 70 70 |et 'sele|ct-stepp|
|00002d70| 69 6e 67 2d 66 6f 72 6d | 73 20 23 5b 28 66 6f 72 |ing-form|s #[(for|
|00002d80| 6d 73 29 20 22 c0 09 c0 | 1a 1b 1c 0b ab 9d 0b 40 |ms) "...|.......@|
|00002d90| 89 12 3c ab 90 5c 6e 47 | c5 55 ab 8a c6 c7 5c 6e |..<..\nG|.U....\n|
|00002da0| 21 5c 6e 40 44 0c 5c 22 | 14 0b 41 89 13 ac 63 0c |!\n@D.\"|..A...c.|
|00002db0| 9f 2b 87 22 20 5b 6e 69 | 6c 20 66 6f 72 6d 73 20 |.+." [ni|l forms |
|00002dc0| 65 6e 74 72 79 20 70 74 | 72 20 72 65 73 75 6c 74 |entry pt|r result|
|00002dd0| 20 33 20 61 70 70 65 6e | 64 20 63 61 64 64 72 5d | 3 appen|d caddr]|
|00002de0| 20 34 20 22 5c 0a 53 65 | 70 61 72 61 74 65 20 6f | 4 "\.Se|parate o|
|00002df0| 6e 6c 79 20 74 68 65 20 | 66 6f 72 6d 73 20 74 68 |nly the |forms th|
|00002e00| 61 74 20 63 61 75 73 65 | 20 73 74 65 70 70 69 6e |at cause| steppin|
|00002e10| 67 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 64 6f 6c |g."]).(f|set 'dol|
|00002e20| 69 73 74 20 27 28 6d 61 | 63 72 6f 20 2e 20 23 5b |ist '(ma|cro . #[|
|00002e30| 28 73 74 65 70 66 6f 72 | 6d 20 26 72 65 73 74 20 |(stepfor|m &rest |
|00002e40| 62 6f 64 79 29 20 22 08 | 3c ac 89 c1 c2 c3 08 21 |body) ".|<......!|
|00002e50| 5c 22 88 aa 9c 08 40 39 | ac 8a c1 c4 c3 08 40 21 |\"....@9|......@!|
|00002e60| 5c 22 88 aa 8d 08 47 c5 | 56 ab 87 c1 c6 c3 08 21 |\"....G.|V......!|
|00002e70| 5c 22 88 08 40 1e 07 c8 | 08 21 1e 09 ca 08 21 1e |\"..@...|.!....!.|
|00002e80| 0b cc cd ce cf 0e 07 43 | 0e 10 42 42 44 0e 09 45 |.......C|..BBD..E|
|00002e90| d1 0e 07 d2 44 43 0e 0b | 45 45 2b 87 22 20 5b 73 |....DC..|EE+." [s|
|00002ea0| 74 65 70 66 6f 72 6d 20 | 65 72 72 6f 72 20 22 53 |tepform |error "S|
|00002eb0| 74 65 70 66 6f 72 6d 20 | 66 6f 72 20 60 64 6f 6c |tepform |for `dol|
|00002ec0| 69 73 74 27 20 73 68 6f | 75 6c 64 20 62 65 20 28 |ist' sho|uld be (|
|00002ed0| 56 41 52 20 4c 49 53 54 | 20 5b 52 45 53 55 4c 54 |VAR LIST| [RESULT|
|00002ee0| 5d 29 2c 20 6e 6f 74 20 | 60 25 73 27 22 20 70 72 |]), not |`%s'" pr|
|00002ef0| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 20 22 46 |in1-to-s|tring "F|
|00002f00| 69 72 73 74 20 63 6f 6d | 70 6f 6e 65 6e 74 20 6f |irst com|ponent o|
|00002f10| 66 20 73 74 65 70 66 6f | 72 6d 20 73 68 6f 75 6c |f stepfo|rm shoul|
|00002f20| 64 20 62 65 20 61 20 73 | 79 6d 62 6f 6c 2c 20 6e |d be a s|ymbol, n|
|00002f30| 6f 74 20 60 25 73 27 22 | 20 33 20 22 54 6f 6f 20 |ot `%s'"| 3 "Too |
|00002f40| 6d 61 6e 79 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |many com|ponents |
|00002f50| 69 6e 20 73 74 65 70 66 | 6f 72 6d 20 60 25 73 27 |in stepf|orm `%s'|
|00002f60| 22 20 76 61 72 20 63 61 | 64 72 20 6c 69 73 74 66 |" var ca|dr listf|
|00002f70| 6f 72 6d 20 63 61 64 64 | 72 20 72 65 73 75 6c 74 |orm cadd|r result|
|00002f80| 66 6f 72 6d 20 70 72 6f | 67 6e 20 6d 61 70 63 61 |form pro|gn mapca|
|00002f90| 72 20 66 75 6e 63 74 69 | 6f 6e 20 6c 61 6d 62 64 |r functi|on lambd|
|00002fa0| 61 20 62 6f 64 79 20 6c | 65 74 20 6e 69 6c 5d 20 |a body l|et nil] |
|00002fb0| 36 20 22 5c 0a 28 64 6f | 6c 69 73 74 20 28 56 41 |6 "\.(do|list (VA|
|00002fc0| 52 20 4c 49 53 54 20 5b | 52 45 53 55 4c 54 46 4f |R LIST [|RESULTFO|
|00002fd0| 52 4d 5d 29 20 2e 20 42 | 4f 44 59 29 3a 20 64 6f |RM]) . B|ODY): do|
|00002fe0| 20 42 4f 44 59 20 66 6f | 72 20 65 61 63 68 20 65 | BODY fo|r each e|
|00002ff0| 6c 74 20 6f 66 20 4c 49 | 53 54 2e 0a 54 68 65 20 |lt of LI|ST..The |
|00003000| 52 45 53 55 4c 54 46 4f | 52 4d 20 64 65 66 61 75 |RESULTFO|RM defau|
|00003010| 6c 74 73 20 74 6f 20 6e | 69 6c 2e 20 20 54 68 65 |lts to n|il. The|
|00003020| 20 56 41 52 20 69 73 20 | 62 6f 75 6e 64 20 74 6f | VAR is |bound to|
|00003030| 20 73 75 63 63 65 73 73 | 69 76 65 0a 65 6c 65 6d | success|ive.elem|
|00003040| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 76 61 6c 75 |ents of |the valu|
|00003050| 65 20 6f 66 20 4c 49 53 | 54 20 61 6e 64 20 72 65 |e of LIS|T and re|
|00003060| 6d 61 69 6e 73 20 62 6f | 75 6e 64 20 28 74 6f 20 |mains bo|und (to |
|00003070| 74 68 65 20 6e 69 6c 20 | 76 61 6c 75 65 29 20 77 |the nil |value) w|
|00003080| 68 65 6e 20 74 68 65 0a | 52 45 53 55 4c 54 46 4f |hen the.|RESULTFO|
|00003090| 52 4d 20 69 73 20 65 76 | 61 6c 75 61 74 65 64 2e |RM is ev|aluated.|
|000030a0| 22 5d 29 29 0a 28 66 73 | 65 74 20 27 64 6f 74 69 |"])).(fs|et 'doti|
|000030b0| 6d 65 73 20 27 28 6d 61 | 63 72 6f 20 2e 20 23 5b |mes '(ma|cro . #[|
|000030c0| 28 73 74 65 70 66 6f 72 | 6d 20 26 72 65 73 74 20 |(stepfor|m &rest |
|000030d0| 62 6f 64 79 29 20 22 08 | 3c ac 89 c1 c2 c3 08 21 |body) ".|<......!|
|000030e0| 5c 22 88 aa 9c 08 40 39 | ac 8a c1 c4 c3 08 40 21 |\"....@9|......@!|
|000030f0| 5c 22 88 aa 8d 08 47 c5 | 56 ab 87 c1 c6 c3 08 21 |\"....G.|V......!|
|00003100| 5c 22 88 08 40 1e 07 c8 | 08 21 1e 09 ca 08 21 1e |\"..@...|.!....!.|
|00003110| 0b cc 20 1e 0d ce 0e 0d | 0e 09 44 43 cf d0 0e 07 |.. .....|..DC....|
|00003120| d1 d2 0e 07 d3 45 45 43 | d4 0e 07 0e 0d 45 0e 0b |.....EEC|.....E..|
|00003130| 44 0e 15 24 45 2c 87 22 | 20 5b 73 74 65 70 66 6f |D..$E,."| [stepfo|
|00003140| 72 6d 20 65 72 72 6f 72 | 20 22 53 74 65 70 66 6f |rm error| "Stepfo|
|00003150| 72 6d 20 66 6f 72 20 60 | 64 6f 74 69 6d 65 73 27 |rm for `|dotimes'|
|00003160| 20 73 68 6f 75 6c 64 20 | 62 65 20 28 56 41 52 20 | should |be (VAR |
|00003170| 43 4f 55 4e 54 20 5b 52 | 45 53 55 4c 54 5d 29 2c |COUNT [R|ESULT]),|
|00003180| 20 6e 6f 74 20 60 25 73 | 27 22 20 70 72 69 6e 31 | not `%s|'" prin1|
|00003190| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 22 46 69 72 73 |-to-stri|ng "Firs|
|000031a0| 74 20 63 6f 6d 70 6f 6e | 65 6e 74 20 6f 66 20 73 |t compon|ent of s|
|000031b0| 74 65 70 66 6f 72 6d 20 | 73 68 6f 75 6c 64 20 62 |tepform |should b|
|000031c0| 65 20 61 20 73 79 6d 62 | 6f 6c 2c 20 6e 6f 74 20 |e a symb|ol, not |
|000031d0| 60 25 73 27 22 20 33 20 | 22 54 6f 6f 20 6d 61 6e |`%s'" 3 |"Too man|
|000031e0| 79 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 69 6e 20 |y compon|ents in |
|000031f0| 73 74 65 70 66 6f 72 6d | 20 60 25 73 27 22 20 76 |stepform| `%s'" v|
|00003200| 61 72 20 63 61 64 72 20 | 63 6f 75 6e 74 66 6f 72 |ar cadr |countfor|
|00003210| 6d 20 63 61 64 64 72 20 | 72 65 73 75 6c 74 66 6f |m caddr |resultfo|
|00003220| 72 6d 20 67 65 6e 74 65 | 6d 70 20 6e 65 77 73 79 |rm gente|mp newsy|
|00003230| 6d 20 6c 65 74 2a 20 6c | 69 73 74 2a 20 64 6f 2a |m let* l|ist* do*|
|00003240| 20 30 20 2b 20 31 20 3e | 3d 20 62 6f 64 79 5d 20 | 0 + 1 >|= body] |
|00003250| 39 20 22 5c 0a 28 64 6f | 74 69 6d 65 73 20 28 56 |9 "\.(do|times (V|
|00003260| 41 52 20 43 4f 55 4e 54 | 46 4f 52 4d 20 5b 52 45 |AR COUNT|FORM [RE|
|00003270| 53 55 4c 54 46 4f 52 4d | 5d 29 20 2e 20 20 42 4f |SULTFORM|]) . BO|
|00003280| 44 59 29 3a 20 52 65 70 | 65 61 74 20 42 4f 44 59 |DY): Rep|eat BODY|
|00003290| 2c 20 63 6f 75 6e 74 69 | 6e 67 20 69 6e 20 56 41 |, counti|ng in VA|
|000032a0| 52 2e 0a 54 68 65 20 43 | 4f 55 4e 54 46 4f 52 4d |R..The C|OUNTFORM|
|000032b0| 20 73 68 6f 75 6c 64 20 | 72 65 74 75 72 6e 20 61 | should |return a|
|000032c0| 20 70 6f 73 69 74 69 76 | 65 20 69 6e 74 65 67 65 | positiv|e intege|
|000032d0| 72 2e 20 20 54 68 65 20 | 56 41 52 20 69 73 20 62 |r. The |VAR is b|
|000032e0| 6f 75 6e 64 20 74 6f 0a | 73 75 63 63 65 73 73 69 |ound to.|successi|
|000032f0| 76 65 20 69 6e 74 65 67 | 65 72 73 20 66 72 6f 6d |ve integ|ers from|
|00003300| 20 30 20 74 6f 20 43 4f | 55 4e 54 46 4f 52 4d 2d | 0 to CO|UNTFORM-|
|00003310| 31 20 61 6e 64 20 74 68 | 65 20 42 4f 44 59 20 69 |1 and th|e BODY i|
|00003320| 73 20 72 65 70 65 61 74 | 65 64 20 66 6f 72 0a 65 |s repeat|ed for.e|
|00003330| 61 63 68 20 6f 66 20 74 | 68 65 6d 2e 20 20 41 74 |ach of t|hem. At|
|00003340| 20 74 68 65 20 65 6e 64 | 2c 20 74 68 65 20 52 45 | the end|, the RE|
|00003350| 53 55 4c 54 46 4f 52 4d | 20 69 73 20 65 76 61 6c |SULTFORM| is eval|
|00003360| 75 61 74 65 64 20 61 6e | 64 20 69 74 73 20 76 61 |uated an|d its va|
|00003370| 6c 75 65 0a 72 65 74 75 | 72 6e 65 64 2e 20 44 75 |lue.retu|rned. Du|
|00003380| 72 69 6e 67 20 74 68 69 | 73 20 6c 61 73 74 20 65 |ring thi|s last e|
|00003390| 76 61 6c 75 61 74 69 6f | 6e 2c 20 74 68 65 20 56 |valuatio|n, the V|
|000033a0| 41 52 20 69 73 20 73 74 | 69 6c 6c 20 62 6f 75 6e |AR is st|ill boun|
|000033b0| 64 2c 20 61 6e 64 20 69 | 74 73 0a 76 61 6c 75 65 |d, and i|ts.value|
|000033c0| 20 69 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | is the |number o|
|000033d0| 66 20 74 69 6d 65 73 20 | 74 68 65 20 69 74 65 72 |f times |the iter|
|000033e0| 61 74 69 6f 6e 20 6f 63 | 63 75 72 72 65 64 2e 20 |ation oc|curred. |
|000033f0| 41 6e 20 6f 6d 69 74 74 | 65 64 20 52 45 53 55 4c |An omitt|ed RESUL|
|00003400| 54 46 4f 52 4d 0a 64 65 | 66 61 75 6c 74 73 20 74 |TFORM.de|faults t|
|00003410| 6f 20 6e 69 6c 2e 22 5d | 29 29 0a 28 66 73 65 74 |o nil."]|)).(fset|
|00003420| 20 27 64 6f 2d 73 79 6d | 62 6f 6c 73 20 27 28 6d | 'do-sym|bols '(m|
|00003430| 61 63 72 6f 20 2e 20 23 | 5b 28 73 74 65 70 66 6f |acro . #|[(stepfo|
|00003440| 72 6d 20 26 72 65 73 74 | 20 62 6f 64 79 29 20 22 |rm &rest| body) "|
|00003450| 08 3c ac 89 c1 c2 c3 08 | 21 5c 22 88 aa 9c 08 40 |.<......|!\"....@|
|00003460| 39 ac 8a c1 c4 c3 08 40 | 21 5c 22 88 aa 8d 08 47 |9......@|!\"....G|
|00003470| c5 56 ab 87 c1 c6 c3 08 | 21 5c 22 88 08 40 1e 07 |.V......|!\"..@..|
|00003480| c8 08 21 1e 09 ca 08 21 | 1e 0b cc cd ce cf 0e 07 |..!....!|........|
|00003490| 43 0e 10 42 42 44 0e 09 | 45 d1 0e 07 d2 44 43 0e |C..BBD..|E....DC.|
|000034a0| 0b 45 45 2b 87 22 20 5b | 73 74 65 70 66 6f 72 6d |.EE+." [|stepform|
|000034b0| 20 65 72 72 6f 72 20 22 | 53 74 65 70 66 6f 72 6d | error "|Stepform|
|000034c0| 20 66 6f 72 20 60 64 6f | 2d 73 79 6d 62 6f 6c 73 | for `do|-symbols|
|000034d0| 27 20 73 68 6f 75 6c 64 | 20 62 65 20 28 56 41 52 |' should| be (VAR|
|000034e0| 20 4f 42 41 52 52 41 59 | 20 5b 52 45 53 55 4c 54 | OBARRAY| [RESULT|
|000034f0| 5d 29 2c 20 6e 6f 74 20 | 60 25 73 27 22 20 70 72 |]), not |`%s'" pr|
|00003500| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 20 22 46 |in1-to-s|tring "F|
|00003510| 69 72 73 74 20 63 6f 6d | 70 6f 6e 65 6e 74 20 6f |irst com|ponent o|
|00003520| 66 20 73 74 65 70 66 6f | 72 6d 20 73 68 6f 75 6c |f stepfo|rm shoul|
|00003530| 64 20 62 65 20 61 20 73 | 79 6d 62 6f 6c 2c 20 6e |d be a s|ymbol, n|
|00003540| 6f 74 20 60 25 73 27 22 | 20 33 20 22 54 6f 6f 20 |ot `%s'"| 3 "Too |
|00003550| 6d 61 6e 79 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |many com|ponents |
|00003560| 69 6e 20 73 74 65 70 66 | 6f 72 6d 20 60 25 73 27 |in stepf|orm `%s'|
|00003570| 22 20 76 61 72 20 63 61 | 64 72 20 6f 62 6c 69 73 |" var ca|dr oblis|
|00003580| 74 20 63 61 64 64 72 20 | 72 65 73 75 6c 74 66 6f |t caddr |resultfo|
|00003590| 72 6d 20 70 72 6f 67 6e | 20 6d 61 70 61 74 6f 6d |rm progn| mapatom|
|000035a0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 6c 61 6d 62 64 |s functi|on lambd|
|000035b0| 61 20 62 6f 64 79 20 6c | 65 74 20 6e 69 6c 5d 20 |a body l|et nil] |
|000035c0| 36 20 22 5c 0a 28 64 6f | 5f 73 79 6d 62 6f 6c 73 |6 "\.(do|_symbols|
|000035d0| 20 28 56 41 52 20 5b 4f | 42 41 52 52 41 59 20 5b | (VAR [O|BARRAY [|
|000035e0| 52 45 53 55 4c 54 46 4f | 52 4d 5d 5d 29 20 2e 20 |RESULTFO|RM]]) . |
|000035f0| 42 4f 44 59 29 0a 54 68 | 65 20 56 41 52 20 69 73 |BODY).Th|e VAR is|
|00003600| 20 62 6f 75 6e 64 20 74 | 6f 20 65 61 63 68 20 6f | bound t|o each o|
|00003610| 66 20 74 68 65 20 73 79 | 6d 62 6f 6c 73 20 69 6e |f the sy|mbols in|
|00003620| 20 4f 42 41 52 52 41 59 | 20 28 64 65 66 2e 20 6f | OBARRAY| (def. o|
|00003630| 62 61 72 72 61 79 29 20 | 61 6e 64 0a 74 68 65 20 |barray) |and.the |
|00003640| 42 4f 44 59 20 69 73 20 | 72 65 70 65 61 74 65 64 |BODY is |repeated|
|00003650| 6c 79 20 70 65 72 66 6f | 72 6d 65 64 20 66 6f 72 |ly perfo|rmed for|
|00003660| 20 65 61 63 68 20 6f 66 | 20 74 68 6f 73 65 20 62 | each of| those b|
|00003670| 69 6e 64 69 6e 67 73 2e | 20 41 74 20 74 68 65 0a |indings.| At the.|
|00003680| 65 6e 64 2c 20 52 45 53 | 55 4c 54 46 4f 52 4d 20 |end, RES|ULTFORM |
|00003690| 28 64 65 66 2e 20 6e 69 | 6c 29 20 69 73 20 65 76 |(def. ni|l) is ev|
|000036a0| 61 6c 75 61 74 65 64 20 | 61 6e 64 20 69 74 73 20 |aluated |and its |
|000036b0| 76 61 6c 75 65 20 72 65 | 74 75 72 6e 65 64 2e 0a |value re|turned..|
|000036c0| 44 75 72 69 6e 67 20 74 | 68 69 73 20 6c 61 73 74 |During t|his last|
|000036d0| 20 65 76 61 6c 75 61 74 | 69 6f 6e 2c 20 74 68 65 | evaluat|ion, the|
|000036e0| 20 56 41 52 20 69 73 20 | 73 74 69 6c 6c 20 62 6f | VAR is |still bo|
|000036f0| 75 6e 64 20 61 6e 64 20 | 69 74 73 20 76 61 6c 75 |und and |its valu|
|00003700| 65 20 69 73 20 6e 69 6c | 2e 0a 53 65 65 20 61 6c |e is nil|..See al|
|00003710| 73 6f 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |so the f|unction |
|00003720| 60 6d 61 70 61 74 6f 6d | 73 27 2e 22 5d 29 29 0a |`mapatom|s'."])).|
|00003730| 28 66 73 65 74 20 27 64 | 6f 2d 61 6c 6c 2d 73 79 |(fset 'd|o-all-sy|
|00003740| 6d 62 6f 6c 73 20 27 28 | 6d 61 63 72 6f 20 2e 20 |mbols '(|macro . |
|00003750| 23 5b 28 73 74 65 70 66 | 6f 72 6d 20 26 72 65 73 |#[(stepf|orm &res|
|00003760| 74 20 62 6f 64 79 29 20 | 22 c0 c1 5c 6e 40 c3 c4 |t body) |"..\n@..|
|00003770| 5c 6e 21 45 0d 23 87 22 | 20 5b 6c 69 73 74 2a 20 |\n!E.#."| [list* |
|00003780| 64 6f 2d 73 79 6d 62 6f | 6c 73 20 73 74 65 70 66 |do-symbo|ls stepf|
|00003790| 6f 72 6d 20 6f 62 61 72 | 72 61 79 20 63 61 64 72 |orm obar|ray cadr|
|000037a0| 20 62 6f 64 79 5d 20 36 | 20 22 5c 0a 28 64 6f 2d | body] 6| "\.(do-|
|000037b0| 61 6c 6c 2d 73 79 6d 62 | 6f 6c 73 20 28 56 41 52 |all-symb|ols (VAR|
|000037c0| 20 5b 52 45 53 55 4c 54 | 46 4f 52 4d 5d 29 20 2e | [RESULT|FORM]) .|
|000037d0| 20 42 4f 44 59 29 0a 49 | 73 20 74 68 65 20 73 61 | BODY).I|s the sa|
|000037e0| 6d 65 20 61 73 20 28 64 | 6f 2d 73 79 6d 62 6f 6c |me as (d|o-symbol|
|000037f0| 73 20 28 56 41 52 20 6f | 62 61 72 72 61 79 20 52 |s (VAR o|barray R|
|00003800| 45 53 55 4c 54 46 4f 52 | 4d 29 20 2e 20 42 4f 44 |ESULTFOR|M) . BOD|
|00003810| 59 29 2e 22 5d 29 29 0a | 28 66 73 65 74 20 27 6c |Y)."])).|(fset 'l|
|00003820| 6f 6f 70 20 27 28 6d 61 | 63 72 6f 20 2e 20 23 5b |oop '(ma|cro . #[|
|00003830| 28 26 72 65 73 74 20 62 | 6f 64 79 29 20 22 08 3c |(&rest b|ody) ".<|
|00003840| ac 84 c1 c2 21 87 c3 c4 | 08 5c 22 88 c5 c6 08 42 |....!...|.\"....B|
|00003850| 42 87 22 20 5b 62 6f 64 | 79 20 65 72 72 6f 72 20 |B." [bod|y error |
|00003860| 22 42 6f 64 79 20 6f 66 | 20 60 6c 6f 6f 70 27 20 |"Body of| `loop' |
|00003870| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 6c 69 73 74 |should b|e a list|
|00003880| 20 6f 66 20 6c 69 73 74 | 73 20 6f 72 20 6e 69 6c | of list|s or nil|
|00003890| 22 20 6d 61 70 63 61 72 | 20 23 5b 28 63 6f 6d 70 |" mapcar| #[(comp|
|000038a0| 6f 6e 65 6e 74 29 20 22 | 08 3c 3f ad 83 c1 c2 21 |onent) "|.<?....!|
|000038b0| 87 22 20 5b 63 6f 6d 70 | 6f 6e 65 6e 74 20 65 72 |." [comp|onent er|
|000038c0| 72 6f 72 20 22 43 6f 6d | 70 6f 6e 65 6e 74 73 20 |ror "Com|ponents |
|000038d0| 6f 66 20 60 6c 6f 6f 70 | 27 20 73 68 6f 75 6c 64 |of `loop|' should|
|000038e0| 20 62 65 20 6c 69 73 74 | 73 22 5d 20 32 5d 20 77 | be list|s"] 2] w|
|000038f0| 68 69 6c 65 20 74 5d 20 | 33 20 22 5c 0a 28 6c 6f |hile t] |3 "\.(lo|
|00003900| 6f 70 20 2e 20 42 4f 44 | 59 29 20 72 65 70 65 61 |op . BOD|Y) repea|
|00003910| 74 73 20 42 4f 44 59 20 | 69 6e 64 65 66 69 6e 69 |ts BODY |indefini|
|00003920| 74 65 6c 79 20 61 6e 64 | 20 64 6f 65 73 20 6e 6f |tely and| does no|
|00003930| 74 20 72 65 74 75 72 6e | 2e 0a 4e 6f 72 6d 61 6c |t return|..Normal|
|00003940| 6c 79 20 42 4f 44 59 20 | 75 73 65 73 20 60 74 68 |ly BODY |uses `th|
|00003950| 72 6f 77 27 20 6f 72 20 | 60 73 69 67 6e 61 6c 27 |row' or |`signal'|
|00003960| 20 74 6f 20 63 61 75 73 | 65 20 61 6e 20 65 78 69 | to caus|e an exi|
|00003970| 74 2e 0a 54 68 65 20 66 | 6f 72 6d 73 20 69 6e 20 |t..The f|orms in |
|00003980| 42 4f 44 59 20 73 68 6f | 75 6c 64 20 62 65 20 6c |BODY sho|uld be l|
|00003990| 69 73 74 73 2c 20 61 73 | 20 6e 6f 6e 2d 6c 69 73 |ists, as| non-lis|
|000039a0| 74 73 20 61 72 65 20 72 | 65 73 65 72 76 65 64 20 |ts are r|eserved |
|000039b0| 66 6f 72 20 6e 65 77 20 | 66 65 61 74 75 72 65 73 |for new |features|
|000039c0| 2e 22 5d 29 29 0a 28 66 | 73 65 74 20 27 66 69 72 |."])).(f|set 'fir|
|000039d0| 73 74 20 23 5b 28 78 29 | 20 22 08 40 87 22 20 5b |st #[(x)| ".@." [|
|000039e0| 78 5d 20 31 20 22 5c 0a | 53 79 6e 6f 6e 79 6d 20 |x] 1 "\.|Synonym |
|000039f0| 66 6f 72 20 60 63 61 72 | 27 22 5d 29 0a 28 66 73 |for `car|'"]).(fs|
|00003a00| 65 74 20 27 73 65 63 6f | 6e 64 20 23 5b 28 78 29 |et 'seco|nd #[(x)|
|00003a10| 20 22 08 41 40 87 22 20 | 5b 78 5d 20 31 20 22 5c | ".A@." |[x] 1 "\|
|00003a20| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 73 65 63 6f |.Return |the seco|
|00003a30| 6e 64 20 65 6c 65 6d 65 | 6e 74 20 6f 66 20 74 68 |nd eleme|nt of th|
|00003a40| 65 20 6c 69 73 74 20 4c | 49 53 54 2e 22 5d 29 0a |e list L|IST."]).|
|00003a50| 28 66 73 65 74 20 27 74 | 68 69 72 64 20 23 5b 28 |(fset 't|hird #[(|
|00003a60| 78 29 20 22 c0 09 38 87 | 22 20 5b 32 20 78 5d 20 |x) "..8.|" [2 x] |
|00003a70| 32 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |2 "\.Ret|urn the |
|00003a80| 74 68 69 72 64 20 65 6c | 65 6d 65 6e 74 20 6f 66 |third el|ement of|
|00003a90| 20 74 68 65 20 6c 69 73 | 74 20 4c 49 53 54 2e 22 | the lis|t LIST."|
|00003aa0| 5d 29 0a 28 66 73 65 74 | 20 27 66 6f 75 72 74 68 |]).(fset| 'fourth|
|00003ab0| 20 23 5b 28 78 29 20 22 | c0 09 38 87 22 20 5b 33 | #[(x) "|..8." [3|
|00003ac0| 20 78 5d 20 32 20 22 5c | 0a 52 65 74 75 72 6e 20 | x] 2 "\|.Return |
|00003ad0| 74 68 65 20 66 6f 75 72 | 74 68 20 65 6c 65 6d 65 |the four|th eleme|
|00003ae0| 6e 74 20 6f 66 20 74 68 | 65 20 6c 69 73 74 20 4c |nt of th|e list L|
|00003af0| 49 53 54 2e 22 5d 29 0a | 28 66 73 65 74 20 27 66 |IST."]).|(fset 'f|
|00003b00| 69 66 74 68 20 23 5b 28 | 78 29 20 22 c0 09 38 87 |ifth #[(|x) "..8.|
|00003b10| 22 20 5b 34 20 78 5d 20 | 32 20 22 5c 0a 52 65 74 |" [4 x] |2 "\.Ret|
|00003b20| 75 72 6e 20 74 68 65 20 | 66 69 66 74 68 20 65 6c |urn the |fifth el|
|00003b30| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 6c 69 73 |ement of| the lis|
|00003b40| 74 20 4c 49 53 54 2e 22 | 5d 29 0a 28 66 73 65 74 |t LIST."|]).(fset|
|00003b50| 20 27 73 69 78 74 68 20 | 23 5b 28 78 29 20 22 c0 | 'sixth |#[(x) ".|
|00003b60| 09 38 87 22 20 5b 35 20 | 78 5d 20 32 20 22 5c 0a |.8." [5 |x] 2 "\.|
|00003b70| 52 65 74 75 72 6e 20 74 | 68 65 20 73 69 78 74 68 |Return t|he sixth|
|00003b80| 20 65 6c 65 6d 65 6e 74 | 20 6f 66 20 74 68 65 20 | element| of the |
|00003b90| 6c 69 73 74 20 4c 49 53 | 54 2e 22 5d 29 0a 28 66 |list LIS|T."]).(f|
|00003ba0| 73 65 74 20 27 73 65 76 | 65 6e 74 68 20 23 5b 28 |set 'sev|enth #[(|
|00003bb0| 78 29 20 22 c0 09 38 87 | 22 20 5b 36 20 78 5d 20 |x) "..8.|" [6 x] |
|00003bc0| 32 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |2 "\.Ret|urn the |
|00003bd0| 73 65 76 65 6e 74 68 20 | 65 6c 65 6d 65 6e 74 20 |seventh |element |
|00003be0| 6f 66 20 74 68 65 20 6c | 69 73 74 20 4c 49 53 54 |of the l|ist LIST|
|00003bf0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 65 69 67 68 |."]).(fs|et 'eigh|
|00003c00| 74 68 20 23 5b 28 78 29 | 20 22 c0 09 38 87 22 20 |th #[(x)| "..8." |
|00003c10| 5b 37 20 78 5d 20 32 20 | 22 5c 0a 52 65 74 75 72 |[7 x] 2 |"\.Retur|
|00003c20| 6e 20 74 68 65 20 65 69 | 67 68 74 68 20 65 6c 65 |n the ei|ghth ele|
|00003c30| 6d 65 6e 74 20 6f 66 20 | 74 68 65 20 6c 69 73 74 |ment of |the list|
|00003c40| 20 4c 49 53 54 2e 22 5d | 29 0a 28 66 73 65 74 20 | LIST."]|).(fset |
|00003c50| 27 6e 69 6e 74 68 20 23 | 5b 28 78 29 20 22 c0 09 |'ninth #|[(x) "..|
|00003c60| 38 87 22 20 5b 38 20 78 | 5d 20 32 20 22 5c 0a 52 |8." [8 x|] 2 "\.R|
|00003c70| 65 74 75 72 6e 20 74 68 | 65 20 6e 69 6e 74 68 20 |eturn th|e ninth |
|00003c80| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 74 68 65 20 6c |element |of the l|
|00003c90| 69 73 74 20 4c 49 53 54 | 2e 22 5d 29 0a 28 66 73 |ist LIST|."]).(fs|
|00003ca0| 65 74 20 27 74 65 6e 74 | 68 20 23 5b 28 78 29 20 |et 'tent|h #[(x) |
|00003cb0| 22 c0 09 38 87 22 20 5b | 39 20 78 5d 20 32 20 22 |"..8." [|9 x] 2 "|
|00003cc0| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 74 65 6e |\.Return| the ten|
|00003cd0| 74 68 20 65 6c 65 6d 65 | 6e 74 20 6f 66 20 74 68 |th eleme|nt of th|
|00003ce0| 65 20 6c 69 73 74 20 4c | 49 53 54 2e 22 5d 29 0a |e list L|IST."]).|
|00003cf0| 28 66 73 65 74 20 27 72 | 65 73 74 20 23 5b 28 78 |(fset 'r|est #[(x|
|00003d00| 29 20 22 08 41 87 22 20 | 5b 78 5d 20 31 20 22 5c |) ".A." |[x] 1 "\|
|00003d10| 0a 53 79 6e 6f 6e 79 6d | 20 66 6f 72 20 60 63 64 |.Synonym| for `cd|
|00003d20| 72 27 22 5d 29 0a 28 66 | 73 65 74 20 27 65 6e 64 |r'"]).(f|set 'end|
|00003d30| 70 20 23 5b 28 78 29 20 | 22 08 3c ab 83 08 3f 87 |p #[(x) |".<...?.|
|00003d40| c1 c2 c3 08 21 5c 22 87 | 22 20 5b 78 20 65 72 72 |....!\".|" [x err|
|00003d50| 6f 72 20 22 65 6e 64 70 | 20 72 65 63 65 69 76 65 |or "endp| receive|
|00003d60| 64 20 61 20 6e 6f 6e 2d | 63 6f 6e 73 2c 20 6e 6f |d a non-|cons, no|
|00003d70| 6e 2d 6e 75 6c 6c 20 61 | 72 67 75 6d 65 6e 74 20 |n-null a|rgument |
|00003d80| 60 25 73 27 22 20 70 72 | 69 6e 31 2d 74 6f 2d 73 |`%s'" pr|in1-to-s|
|00003d90| 74 72 69 6e 67 5d 20 34 | 20 22 5c 0a 74 20 69 66 |tring] 4| "\.t if|
|00003da0| 20 58 20 69 73 20 6e 69 | 6c 2c 20 6e 69 6c 20 69 | X is ni|l, nil i|
|00003db0| 66 20 58 20 69 73 20 61 | 20 63 6f 6e 73 3b 20 65 |f X is a| cons; e|
|00003dc0| 72 72 6f 72 20 6f 74 68 | 65 72 77 69 73 65 2e 22 |rror oth|erwise."|
|00003dd0| 5d 29 0a 28 66 73 65 74 | 20 27 6c 61 73 74 20 23 |]).(fset| 'last #|
|00003de0| 5b 28 78 29 20 22 08 3c | ac 84 c1 c2 21 88 08 89 |[(x) ".<|....!...|
|00003df0| 41 1b 1c c5 0b 21 ac 90 | 0c 41 0b 41 1e 06 89 1e |A....!..|.A.A....|
|00003e00| 07 14 0e 06 13 2a aa 6b | 0c 2a 87 22 20 5b 78 20 |.....*.k|.*." [x |
|00003e10| 65 72 72 6f 72 20 22 41 | 72 67 20 74 6f 20 60 6c |error "A|rg to `l|
|00003e20| 61 73 74 27 20 6d 75 73 | 74 20 62 65 20 61 20 6c |ast' mus|t be a l|
|00003e30| 69 73 74 22 20 6e 65 78 | 74 2d 63 6f 6e 73 20 63 |ist" nex|t-cons c|
|00003e40| 75 72 72 65 6e 74 2d 63 | 6f 6e 73 20 65 6e 64 70 |urrent-c|ons endp|
|00003e50| 20 47 24 24 5f 38 20 47 | 24 24 5f 39 5d 20 33 20 | G$$_8 G|$$_9] 3 |
|00003e60| 22 5c 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 6c |"\.Retur|ns the l|
|00003e70| 61 73 74 20 6c 69 6e 6b | 20 69 6e 20 74 68 65 20 |ast link| in the |
|00003e80| 6c 69 73 74 20 4c 49 53 | 54 2e 22 5d 29 0a 28 66 |list LIS|T."]).(f|
|00003e90| 73 65 74 20 27 6c 69 73 | 74 2d 6c 65 6e 67 74 68 |set 'lis|t-length|
|00003ea0| 20 23 5b 28 78 29 20 22 | c0 09 89 c2 1b 1c 1d 1e | #[(x) "|........|
|00003eb0| 06 0b ac c2 c7 0d 21 ab | 84 c8 13 aa a8 c7 0d 41 |......!.|.......A|
|00003ec0| 21 ab 8a 0e 06 c9 5c 5c | 16 06 c8 13 aa 98 0d 0c |!.....\\|........|
|00003ed0| 3d ab 8d 0e 06 c0 56 ab | 87 c2 16 06 c8 13 aa 86 |=.....V.|........|
|00003ee0| 0e 06 ca 5c 5c 16 06 cb | 0d 21 0c 41 1e 0c 89 1e |...\\...|.!.A....|
|00003ef0| 0d 15 0e 0c 14 2a aa 3b | 0e 06 2c 87 22 20 5b 30 |.....*.;|..,." [0|
|00003f00| 20 78 20 6e 69 6c 20 72 | 65 61 64 79 20 73 6c 6f | x nil r|eady slo|
|00003f10| 77 20 66 61 73 74 20 6e | 20 65 6e 64 70 20 74 20 |w fast n| endp t |
|00003f20| 31 20 32 20 63 64 64 72 | 20 47 24 24 5f 31 30 20 |1 2 cddr| G$$_10 |
|00003f30| 47 24 24 5f 31 31 5d 20 | 35 20 22 5c 0a 52 65 74 |G$$_11] |5 "\.Ret|
|00003f40| 75 72 6e 73 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |urns the| length |
|00003f50| 6f 66 20 61 20 6e 6f 6e | 2d 63 69 72 63 75 6c 61 |of a non|-circula|
|00003f60| 72 20 6c 69 73 74 2c 20 | 6f 72 20 60 6e 69 6c 27 |r list, |or `nil'|
|00003f70| 20 66 6f 72 20 61 20 63 | 69 72 63 75 6c 61 72 20 | for a c|ircular |
|00003f80| 6f 6e 65 2e 22 5d 29 0a | 28 66 73 65 74 20 27 63 |one."]).|(fset 'c|
|00003f90| 6c 2d 6d 65 6d 62 65 72 | 20 23 5b 28 69 74 65 6d |l-member| #[(item|
|00003fa0| 20 6c 69 73 74 29 20 22 | 08 c1 89 1a 1b 1c 0b ac | list) "|........|
|00003fb0| 95 c5 0c 21 ac 90 0e 06 | 0c 40 3d ab 84 c7 13 0c |...!....|.@=.....|
|00003fc0| 12 0c 41 14 aa 68 5c 6e | 2b 87 22 20 5b 6c 69 73 |..A..h\n|+." [lis|
|00003fd0| 74 20 6e 69 6c 20 72 65 | 73 75 6c 74 20 64 6f 6e |t nil re|sult don|
|00003fe0| 65 20 70 74 72 20 65 6e | 64 70 20 69 74 65 6d 20 |e ptr en|dp item |
|00003ff0| 74 5d 20 33 20 22 5c 0a | 4c 6f 6f 6b 20 66 6f 72 |t] 3 "\.|Look for|
|00004000| 20 49 54 45 4d 20 69 6e | 20 4c 49 53 54 3b 20 72 | ITEM in| LIST; r|
|00004010| 65 74 75 72 6e 20 66 69 | 72 73 74 20 6c 69 6e 6b |eturn fi|rst link|
|00004020| 20 69 6e 20 4c 49 53 54 | 20 77 68 6f 73 65 20 63 | in LIST| whose c|
|00004030| 61 72 20 69 73 20 60 65 | 71 6c 27 20 74 6f 20 49 |ar is `e|ql' to I|
|00004040| 54 45 4d 2e 22 5d 29 0a | 28 66 73 65 74 20 27 62 |TEM."]).|(fset 'b|
|00004050| 75 74 6c 61 73 74 20 23 | 5b 28 6c 69 73 74 20 26 |utlast #|[(list &|
|00004060| 6f 70 74 69 6f 6e 61 6c | 20 6e 29 20 22 08 ac 82 |optional| n) "...|
|00004070| c1 10 c2 08 c2 0b 21 9b | 21 87 22 20 5b 6e 20 31 |......!.|!." [n 1|
|00004080| 20 72 65 76 65 72 73 65 | 20 6c 69 73 74 5d 20 34 | reverse| list] 4|
|00004090| 20 22 5c 0a 52 65 74 75 | 72 6e 20 61 20 6e 65 77 | "\.Retu|rn a new|
|000040a0| 20 6c 69 73 74 20 6c 69 | 6b 65 20 4c 49 53 54 20 | list li|ke LIST |
|000040b0| 62 75 74 20 73 61 6e 73 | 20 74 68 65 20 6c 61 73 |but sans| the las|
|000040c0| 74 20 4e 20 65 6c 65 6d | 65 6e 74 73 2e 0a 4e 20 |t N elem|ents..N |
|000040d0| 64 65 66 61 75 6c 74 73 | 20 74 6f 20 31 2e 20 20 |defaults| to 1. |
|000040e0| 49 66 20 74 68 65 20 6c | 69 73 74 20 64 6f 65 73 |If the l|ist does|
|000040f0| 6e 27 74 20 68 61 76 65 | 20 4e 20 65 6c 65 6d 65 |n't have| N eleme|
|00004100| 6e 74 73 2c 20 6e 69 6c | 20 69 73 20 72 65 74 75 |nts, nil| is retu|
|00004110| 72 6e 65 64 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |rned."])|.(fset '|
|00004120| 6c 69 73 74 2a 20 23 5b | 28 61 72 67 20 26 72 65 |list* #[|(arg &re|
|00004130| 73 74 20 6f 74 68 65 72 | 73 29 20 22 08 ac 82 09 |st other|s) "....|
|00004140| 87 09 08 42 1a c3 5c 6e | 21 1c c5 5c 6e 21 1e 06 |...B..\n|!..\n!..|
|00004150| c5 0c 21 0e 06 40 a1 88 | 0c 2b 87 22 20 5b 6f 74 |..!..@..|.+." [ot|
|00004160| 68 65 72 73 20 61 72 67 | 20 61 6c 6c 61 72 67 73 |hers arg| allargs|
|00004170| 20 62 75 74 6c 61 73 74 | 20 66 72 6f 6e 74 20 6c | butlast| front l|
|00004180| 61 73 74 20 62 61 63 6b | 5d 20 32 20 22 5c 0a 52 |ast back|] 2 "\.R|
|00004190| 65 74 75 72 6e 20 61 20 | 6e 65 77 20 6c 69 73 74 |eturn a |new list|
|000041a0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 65 20 | contain|ing the |
|000041b0| 66 69 72 73 74 20 61 72 | 67 75 6d 65 6e 74 73 20 |first ar|guments |
|000041c0| 63 6f 6e 73 65 64 20 6f | 6e 74 6f 20 74 68 65 20 |consed o|nto the |
|000041d0| 6c 61 73 74 20 61 72 67 | 2e 0a 54 68 75 73 2c 20 |last arg|..Thus, |
|000041e0| 28 6c 69 73 74 2a 20 31 | 20 32 20 33 20 27 28 61 |(list* 1| 2 3 '(a|
|000041f0| 20 62 29 29 20 72 65 74 | 75 72 6e 73 20 28 31 20 | b)) ret|urns (1 |
|00004200| 32 20 33 20 61 20 62 29 | 2e 22 5d 29 0a 28 66 73 |2 3 a b)|."]).(fs|
|00004210| 65 74 20 27 61 64 6a 6f | 69 6e 20 23 5b 28 69 74 |et 'adjo|in #[(it|
|00004220| 65 6d 20 6c 69 73 74 29 | 20 22 c0 09 5c 6e 5c 22 |em list)| "..\n\"|
|00004230| ab 82 5c 6e 87 09 5c 6e | 42 87 22 20 5b 63 6c 2d |..\n..\n|B." [cl-|
|00004240| 6d 65 6d 62 65 72 20 69 | 74 65 6d 20 6c 69 73 74 |member i|tem list|
|00004250| 5d 20 33 20 22 5c 0a 52 | 65 74 75 72 6e 20 61 20 |] 3 "\.R|eturn a |
|00004260| 6c 69 73 74 20 77 68 69 | 63 68 20 63 6f 6e 74 61 |list whi|ch conta|
|00004270| 69 6e 73 20 49 54 45 4d | 20 62 75 74 20 69 73 20 |ins ITEM| but is |
|00004280| 6f 74 68 65 72 77 69 73 | 65 20 6c 69 6b 65 20 4c |otherwis|e like L|
|00004290| 49 53 54 2e 0a 49 66 20 | 49 54 45 4d 20 6f 63 63 |IST..If |ITEM occ|
|000042a0| 75 72 73 20 69 6e 20 4c | 49 53 54 2c 20 74 68 65 |urs in L|IST, the|
|000042b0| 20 76 61 6c 75 65 20 69 | 73 20 4c 49 53 54 2e 20 | value i|s LIST. |
|000042c0| 20 4f 74 68 65 72 77 69 | 73 65 20 69 74 20 69 73 | Otherwi|se it is|
|000042d0| 20 28 63 6f 6e 73 20 49 | 54 45 4d 20 4c 49 53 54 | (cons I|TEM LIST|
|000042e0| 29 2e 0a 57 68 65 6e 20 | 63 6f 6d 70 61 72 69 6e |)..When |comparin|
|000042f0| 67 20 49 54 45 4d 20 61 | 67 61 69 6e 73 74 20 65 |g ITEM a|gainst e|
|00004300| 6c 65 6d 65 6e 74 73 2c | 20 60 65 71 6c 27 20 69 |lements,| `eql' i|
|00004310| 73 20 75 73 65 64 2e 22 | 5d 29 0a 28 66 73 65 74 |s used."|]).(fset|
|00004320| 20 27 6c 64 69 66 66 20 | 23 5b 28 6c 69 73 74 20 | 'ldiff |#[(list |
|00004330| 73 75 62 6c 69 73 74 29 | 20 22 c0 09 1a 1b c4 5c |sublist)| ".....\|
|00004340| 6e 21 ac 93 5c 6e 0d 3d | ac 8e 5c 6e 40 0b 42 13 |n!..\n.=|..\n@.B.|
|00004350| 5c 6e 41 89 1e 06 12 29 | aa 68 c7 0b 21 2a 87 22 |\nA....)|.h..!*."|
|00004360| 20 5b 6e 69 6c 20 6c 69 | 73 74 20 63 75 72 63 6f | [nil li|st curco|
|00004370| 6e 73 20 72 65 73 75 6c | 74 20 65 6e 64 70 20 73 |ns resul|t endp s|
|00004380| 75 62 6c 69 73 74 20 47 | 24 24 5f 31 32 20 72 65 |ublist G|$$_12 re|
|00004390| 76 65 72 73 65 5d 20 33 | 20 22 5c 0a 52 65 74 75 |verse] 3| "\.Retu|
|000043a0| 72 6e 20 61 20 6e 65 77 | 20 6c 69 73 74 20 6c 69 |rn a new| list li|
|000043b0| 6b 65 20 4c 49 53 54 20 | 62 75 74 20 73 61 6e 73 |ke LIST |but sans|
|000043c0| 20 53 55 42 4c 49 53 54 | 2e 0a 53 55 42 4c 49 53 | SUBLIST|..SUBLIS|
|000043d0| 54 20 6d 75 73 74 20 62 | 65 20 6f 6e 65 20 6f 66 |T must b|e one of|
|000043e0| 20 74 68 65 20 6c 69 6e | 6b 73 20 69 6e 20 4c 49 | the lin|ks in LI|
|000043f0| 53 54 3b 20 6f 74 68 65 | 72 77 69 73 65 20 74 68 |ST; othe|rwise th|
|00004400| 65 20 76 61 6c 75 65 20 | 69 73 20 4c 49 53 54 20 |e value |is LIST |
|00004410| 69 74 73 65 6c 66 2e 22 | 5d 29 0a 28 66 73 65 74 |itself."|]).(fset|
|00004420| 20 27 63 61 61 72 20 23 | 5b 28 58 29 20 22 08 40 | 'caar #|[(X) ".@|
|00004430| 40 87 22 20 5b 58 5d 20 | 31 20 22 5c 0a 52 65 74 |@." [X] |1 "\.Ret|
|00004440| 75 72 6e 20 74 68 65 20 | 63 61 72 20 6f 66 20 74 |urn the |car of t|
|00004450| 68 65 20 63 61 72 20 6f | 66 20 58 2e 22 5d 29 0a |he car o|f X."]).|
|00004460| 28 66 73 65 74 20 27 63 | 61 64 72 20 23 5b 28 58 |(fset 'c|adr #[(X|
|00004470| 29 20 22 08 41 40 87 22 | 20 5b 58 5d 20 31 20 22 |) ".A@."| [X] 1 "|
|00004480| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004490| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 58 | of the |cdr of X|
|000044a0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 63 64 61 72 |."]).(fs|et 'cdar|
|000044b0| 20 23 5b 28 58 29 20 22 | 08 40 41 87 22 20 5b 58 | #[(X) "|.@A." [X|
|000044c0| 5d 20 31 20 22 5c 0a 52 | 65 74 75 72 6e 20 74 68 |] 1 "\.R|eturn th|
|000044d0| 65 20 63 64 72 20 6f 66 | 20 74 68 65 20 63 61 72 |e cdr of| the car|
|000044e0| 20 6f 66 20 58 2e 22 5d | 29 0a 28 66 73 65 74 20 | of X."]|).(fset |
|000044f0| 27 63 64 64 72 20 23 5b | 28 58 29 20 22 08 41 41 |'cddr #[|(X) ".AA|
|00004500| 87 22 20 5b 58 5d 20 31 | 20 22 5c 0a 52 65 74 75 |." [X] 1| "\.Retu|
|00004510| 72 6e 20 74 68 65 20 63 | 64 72 20 6f 66 20 74 68 |rn the c|dr of th|
|00004520| 65 20 63 64 72 20 6f 66 | 20 58 2e 22 5d 29 0a 28 |e cdr of| X."]).(|
|00004530| 66 73 65 74 20 27 63 61 | 61 61 72 20 23 5b 28 58 |fset 'ca|aar #[(X|
|00004540| 29 20 22 08 40 40 40 87 | 22 20 5b 58 5d 20 31 20 |) ".@@@.|" [X] 1 |
|00004550| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 63 61 |"\.Retur|n the ca|
|00004560| 72 20 6f 66 20 74 68 65 | 20 63 61 72 20 6f 66 20 |r of the| car of |
|00004570| 74 68 65 20 63 61 72 20 | 6f 66 20 58 2e 22 5d 29 |the car |of X."])|
|00004580| 0a 28 66 73 65 74 20 27 | 63 61 61 64 72 20 23 5b |.(fset '|caadr #[|
|00004590| 28 58 29 20 22 08 41 40 | 40 87 22 20 5b 58 5d 20 |(X) ".A@|@." [X] |
|000045a0| 31 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |1 "\.Ret|urn the |
|000045b0| 63 61 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |car of t|he car o|
|000045c0| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|000045d0| 5d 29 0a 28 66 73 65 74 | 20 27 63 61 64 61 72 20 |]).(fset| 'cadar |
|000045e0| 23 5b 28 58 29 20 22 08 | 40 41 40 87 22 20 5b 58 |#[(X) ".|@A@." [X|
|000045f0| 5d 20 31 20 22 5c 0a 52 | 65 74 75 72 6e 20 74 68 |] 1 "\.R|eturn th|
|00004600| 65 20 63 61 72 20 6f 66 | 20 74 68 65 20 63 64 72 |e car of| the cdr|
|00004610| 20 6f 66 20 74 68 65 20 | 63 61 72 20 6f 66 20 58 | of the |car of X|
|00004620| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 63 64 61 61 |."]).(fs|et 'cdaa|
|00004630| 72 20 23 5b 28 58 29 20 | 22 08 40 40 41 87 22 20 |r #[(X) |".@@A." |
|00004640| 5b 58 5d 20 31 20 22 5c | 0a 52 65 74 75 72 6e 20 |[X] 1 "\|.Return |
|00004650| 74 68 65 20 63 64 72 20 | 6f 66 20 74 68 65 20 63 |the cdr |of the c|
|00004660| 61 72 20 6f 66 20 74 68 | 65 20 63 61 72 20 6f 66 |ar of th|e car of|
|00004670| 20 58 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 63 61 | X."]).(|fset 'ca|
|00004680| 64 64 72 20 23 5b 28 58 | 29 20 22 08 41 41 40 87 |ddr #[(X|) ".AA@.|
|00004690| 22 20 5b 58 5d 20 31 20 | 22 5c 0a 52 65 74 75 72 |" [X] 1 |"\.Retur|
|000046a0| 6e 20 74 68 65 20 63 61 | 72 20 6f 66 20 74 68 65 |n the ca|r of the|
|000046b0| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 64 72 20 | cdr of |the cdr |
|000046c0| 6f 66 20 58 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |of X."])|.(fset '|
|000046d0| 63 64 61 64 72 20 23 5b | 28 58 29 20 22 08 41 40 |cdadr #[|(X) ".A@|
|000046e0| 41 87 22 20 5b 58 5d 20 | 31 20 22 5c 0a 52 65 74 |A." [X] |1 "\.Ret|
|000046f0| 75 72 6e 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 |urn the |cdr of t|
|00004700| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 64 |he car o|f the cd|
|00004710| 72 20 6f 66 20 58 2e 22 | 5d 29 0a 28 66 73 65 74 |r of X."|]).(fset|
|00004720| 20 27 63 64 64 61 72 20 | 23 5b 28 58 29 20 22 08 | 'cddar |#[(X) ".|
|00004730| 40 41 41 87 22 20 5b 58 | 5d 20 31 20 22 5c 0a 52 |@AA." [X|] 1 "\.R|
|00004740| 65 74 75 72 6e 20 74 68 | 65 20 63 64 72 20 6f 66 |eturn th|e cdr of|
|00004750| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004760| 63 61 72 20 6f 66 20 58 | 2e 22 5d 29 0a 28 66 73 |car of X|."]).(fs|
|00004770| 65 74 20 27 63 64 64 64 | 72 20 23 5b 28 58 29 20 |et 'cddd|r #[(X) |
|00004780| 22 08 41 41 41 87 22 20 | 5b 58 5d 20 31 20 22 5c |".AAA." |[X] 1 "\|
|00004790| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 63 64 72 20 |.Return |the cdr |
|000047a0| 6f 66 20 74 68 65 20 63 | 64 72 20 6f 66 20 74 68 |of the c|dr of th|
|000047b0| 65 20 63 64 72 20 6f 66 | 20 58 2e 22 5d 29 0a 28 |e cdr of| X."]).(|
|000047c0| 66 73 65 74 20 27 63 61 | 61 61 61 72 20 23 5b 28 |fset 'ca|aaar #[(|
|000047d0| 58 29 20 22 08 40 40 40 | 40 87 22 20 5b 58 5d 20 |X) ".@@@|@." [X] |
|000047e0| 31 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |1 "\.Ret|urn the |
|000047f0| 63 61 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |car of t|he car o|
|00004800| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 74 68 65 |f the ca|r of the|
|00004810| 20 63 61 72 20 6f 66 20 | 58 2e 22 5d 29 0a 28 66 | car of |X."]).(f|
|00004820| 73 65 74 20 27 63 61 61 | 61 64 72 20 23 5b 28 58 |set 'caa|adr #[(X|
|00004830| 29 20 22 08 41 40 40 40 | 87 22 20 5b 58 5d 20 31 |) ".A@@@|." [X] 1|
|00004840| 20 22 5c 0a 52 65 74 75 | 72 6e 20 74 68 65 20 63 | "\.Retu|rn the c|
|00004850| 61 72 20 6f 66 20 74 68 | 65 20 63 61 72 20 6f 66 |ar of th|e car of|
|00004860| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004870| 63 64 72 20 6f 66 20 58 | 2e 22 5d 29 0a 28 66 73 |cdr of X|."]).(fs|
|00004880| 65 74 20 27 63 61 61 64 | 61 72 20 23 5b 28 58 29 |et 'caad|ar #[(X)|
|00004890| 20 22 08 40 41 40 40 87 | 22 20 5b 58 5d 20 31 20 | ".@A@@.|" [X] 1 |
|000048a0| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 63 61 |"\.Retur|n the ca|
|000048b0| 72 20 6f 66 20 74 68 65 | 20 63 61 72 20 6f 66 20 |r of the| car of |
|000048c0| 74 68 65 20 63 64 72 20 | 6f 66 20 74 68 65 20 63 |the cdr |of the c|
|000048d0| 61 72 20 6f 66 20 58 2e | 22 5d 29 0a 28 66 73 65 |ar of X.|"]).(fse|
|000048e0| 74 20 27 63 61 64 61 61 | 72 20 23 5b 28 58 29 20 |t 'cadaa|r #[(X) |
|000048f0| 22 08 40 40 41 40 87 22 | 20 5b 58 5d 20 31 20 22 |".@@A@."| [X] 1 "|
|00004900| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004910| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004920| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 61 |he car o|f the ca|
|00004930| 72 20 6f 66 20 58 2e 22 | 5d 29 0a 28 66 73 65 74 |r of X."|]).(fset|
|00004940| 20 27 63 64 61 61 61 72 | 20 23 5b 28 58 29 20 22 | 'cdaaar| #[(X) "|
|00004950| 08 40 40 40 41 87 22 20 | 5b 58 5d 20 31 20 22 5c |.@@@A." |[X] 1 "\|
|00004960| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 63 64 72 20 |.Return |the cdr |
|00004970| 6f 66 20 74 68 65 20 63 | 61 72 20 6f 66 20 74 68 |of the c|ar of th|
|00004980| 65 20 63 61 72 20 6f 66 | 20 74 68 65 20 63 61 72 |e car of| the car|
|00004990| 20 6f 66 20 58 2e 22 5d | 29 0a 28 66 73 65 74 20 | of X."]|).(fset |
|000049a0| 27 63 61 61 64 64 72 20 | 23 5b 28 58 29 20 22 08 |'caaddr |#[(X) ".|
|000049b0| 41 41 40 40 87 22 20 5b | 58 5d 20 31 20 22 5c 0a |AA@@." [|X] 1 "\.|
|000049c0| 52 65 74 75 72 6e 20 74 | 68 65 20 63 61 72 20 6f |Return t|he car o|
|000049d0| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 74 68 65 |f the ca|r of the|
|000049e0| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 64 72 20 | cdr of |the cdr |
|000049f0| 6f 66 20 58 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |of X."])|.(fset '|
|00004a00| 63 61 64 61 64 72 20 23 | 5b 28 58 29 20 22 08 41 |cadadr #|[(X) ".A|
|00004a10| 40 41 40 87 22 20 5b 58 | 5d 20 31 20 22 5c 0a 52 |@A@." [X|] 1 "\.R|
|00004a20| 65 74 75 72 6e 20 74 68 | 65 20 63 61 72 20 6f 66 |eturn th|e car of|
|00004a30| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004a40| 63 61 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |car of t|he cdr o|
|00004a50| 66 20 58 2e 22 5d 29 0a | 28 66 73 65 74 20 27 63 |f X."]).|(fset 'c|
|00004a60| 64 61 61 64 72 20 23 5b | 28 58 29 20 22 08 41 40 |daadr #[|(X) ".A@|
|00004a70| 40 41 87 22 20 5b 58 5d | 20 31 20 22 5c 0a 52 65 |@A." [X]| 1 "\.Re|
|00004a80| 74 75 72 6e 20 74 68 65 | 20 63 64 72 20 6f 66 20 |turn the| cdr of |
|00004a90| 74 68 65 20 63 61 72 20 | 6f 66 20 74 68 65 20 63 |the car |of the c|
|00004aa0| 61 72 20 6f 66 20 74 68 | 65 20 63 64 72 20 6f 66 |ar of th|e cdr of|
|00004ab0| 20 58 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 63 61 | X."]).(|fset 'ca|
|00004ac0| 64 64 61 72 20 23 5b 28 | 58 29 20 22 08 40 41 41 |ddar #[(|X) ".@AA|
|00004ad0| 40 87 22 20 5b 58 5d 20 | 31 20 22 5c 0a 52 65 74 |@." [X] |1 "\.Ret|
|00004ae0| 75 72 6e 20 74 68 65 20 | 63 61 72 20 6f 66 20 74 |urn the |car of t|
|00004af0| 68 65 20 63 64 72 20 6f | 66 20 74 68 65 20 63 64 |he cdr o|f the cd|
|00004b00| 72 20 6f 66 20 74 68 65 | 20 63 61 72 20 6f 66 20 |r of the| car of |
|00004b10| 58 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 63 64 61 |X."]).(f|set 'cda|
|00004b20| 64 61 72 20 23 5b 28 58 | 29 20 22 08 40 41 40 41 |dar #[(X|) ".@A@A|
|00004b30| 87 22 20 5b 58 5d 20 31 | 20 22 5c 0a 52 65 74 75 |." [X] 1| "\.Retu|
|00004b40| 72 6e 20 74 68 65 20 63 | 64 72 20 6f 66 20 74 68 |rn the c|dr of th|
|00004b50| 65 20 63 61 72 20 6f 66 | 20 74 68 65 20 63 64 72 |e car of| the cdr|
|00004b60| 20 6f 66 20 74 68 65 20 | 63 61 72 20 6f 66 20 58 | of the |car of X|
|00004b70| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 63 64 64 61 |."]).(fs|et 'cdda|
|00004b80| 61 72 20 23 5b 28 58 29 | 20 22 08 40 40 41 41 87 |ar #[(X)| ".@@AA.|
|00004b90| 22 20 5b 58 5d 20 31 20 | 22 5c 0a 52 65 74 75 72 |" [X] 1 |"\.Retur|
|00004ba0| 6e 20 74 68 65 20 63 64 | 72 20 6f 66 20 74 68 65 |n the cd|r of the|
|00004bb0| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 61 72 20 | cdr of |the car |
|00004bc0| 6f 66 20 74 68 65 20 63 | 61 72 20 6f 66 20 58 2e |of the c|ar of X.|
|00004bd0| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 61 64 64 64 |"]).(fse|t 'caddd|
|00004be0| 72 20 23 5b 28 58 29 20 | 22 08 41 41 41 40 87 22 |r #[(X) |".AAA@."|
|00004bf0| 20 5b 58 5d 20 31 20 22 | 5c 0a 52 65 74 75 72 6e | [X] 1 "|\.Return|
|00004c00| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004c10| 63 64 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |cdr of t|he cdr o|
|00004c20| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004c30| 5d 29 0a 28 66 73 65 74 | 20 27 63 64 64 61 64 72 |]).(fset| 'cddadr|
|00004c40| 20 23 5b 28 58 29 20 22 | 08 41 40 41 41 87 22 20 | #[(X) "|.A@AA." |
|00004c50| 5b 58 5d 20 31 20 22 5c | 0a 52 65 74 75 72 6e 20 |[X] 1 "\|.Return |
|00004c60| 74 68 65 20 63 64 72 20 | 6f 66 20 74 68 65 20 63 |the cdr |of the c|
|00004c70| 64 72 20 6f 66 20 74 68 | 65 20 63 61 72 20 6f 66 |dr of th|e car of|
|00004c80| 20 74 68 65 20 63 64 72 | 20 6f 66 20 58 2e 22 5d | the cdr| of X."]|
|00004c90| 29 0a 28 66 73 65 74 20 | 27 63 64 61 64 64 72 20 |).(fset |'cdaddr |
|00004ca0| 23 5b 28 58 29 20 22 08 | 41 41 40 41 87 22 20 5b |#[(X) ".|AA@A." [|
|00004cb0| 58 5d 20 31 20 22 5c 0a | 52 65 74 75 72 6e 20 74 |X] 1 "\.|Return t|
|00004cc0| 68 65 20 63 64 72 20 6f | 66 20 74 68 65 20 63 61 |he cdr o|f the ca|
|00004cd0| 72 20 6f 66 20 74 68 65 | 20 63 64 72 20 6f 66 20 |r of the| cdr of |
|00004ce0| 74 68 65 20 63 64 72 20 | 6f 66 20 58 2e 22 5d 29 |the cdr |of X."])|
|00004cf0| 0a 28 66 73 65 74 20 27 | 63 64 64 64 61 72 20 23 |.(fset '|cdddar #|
|00004d00| 5b 28 58 29 20 22 08 40 | 41 41 41 87 22 20 5b 58 |[(X) ".@|AAA." [X|
|00004d10| 5d 20 31 20 22 5c 0a 52 | 65 74 75 72 6e 20 74 68 |] 1 "\.R|eturn th|
|00004d20| 65 20 63 64 72 20 6f 66 | 20 74 68 65 20 63 64 72 |e cdr of| the cdr|
|00004d30| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004d40| 68 65 20 63 61 72 20 6f | 66 20 58 2e 22 5d 29 0a |he car o|f X."]).|
|00004d50| 28 66 73 65 74 20 27 63 | 64 64 64 64 72 20 23 5b |(fset 'c|ddddr #[|
|00004d60| 28 58 29 20 22 08 41 41 | 41 41 87 22 20 5b 58 5d |(X) ".AA|AA." [X]|
|00004d70| 20 31 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 | 1 "\.Re|turn the|
|00004d80| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 64 72 20 | cdr of |the cdr |
|00004d90| 6f 66 20 74 68 65 20 63 | 64 72 20 6f 66 20 74 68 |of the c|dr of th|
|00004da0| 65 20 63 64 72 20 6f 66 | 20 58 2e 22 5d 29 0a 28 |e cdr of| X."]).(|
|00004db0| 66 73 65 74 20 27 73 65 | 74 6e 74 68 20 23 5b 28 |fset 'se|tnth #[(|
|00004dc0| 6e 20 6c 69 73 74 20 6e | 65 77 76 61 6c 29 20 22 |n list n|ewval) "|
|00004dd0| 08 09 9b 5c 6e a0 87 22 | 20 5b 6e 20 6c 69 73 74 |...\n.."| [n list|
|00004de0| 20 6e 65 77 76 61 6c 5d | 20 32 20 22 5c 0a 53 65 | newval]| 2 "\.Se|
|00004df0| 74 20 28 6e 74 68 20 4e | 20 4c 49 53 54 29 20 74 |t (nth N| LIST) t|
|00004e00| 6f 20 4e 45 57 56 41 4c | 2e 20 20 52 65 74 75 72 |o NEWVAL|. Retur|
|00004e10| 6e 73 20 4e 45 57 56 41 | 4c 2e 22 5d 29 0a 28 66 |ns NEWVA|L."]).(f|
|00004e20| 73 65 74 20 27 73 65 74 | 6e 74 68 63 64 72 20 23 |set 'set|nthcdr #|
|00004e30| 5b 28 6e 20 6c 69 73 74 | 20 6e 65 77 76 61 6c 29 |[(n list| newval)|
|00004e40| 20 22 08 c1 57 ab 85 c2 | c3 08 5c 22 87 08 c1 55 | "..W...|..\"...U|
|00004e50| ab 8c 0c 0d 40 a0 88 0c | 0d 41 a1 88 0d 87 08 c6 |....@...|.A......|
|00004e60| 5a 0c 9b 0d a1 87 22 20 | 5b 6e 20 30 20 65 72 72 |Z....." |[n 0 err|
|00004e70| 6f 72 20 22 4e 20 6d 75 | 73 74 20 62 65 20 30 20 |or "N mu|st be 0 |
|00004e80| 6f 72 20 67 72 65 61 74 | 65 72 2c 20 6e 6f 74 20 |or great|er, not |
|00004e90| 25 64 22 20 6c 69 73 74 | 20 6e 65 77 76 61 6c 20 |%d" list| newval |
|00004ea0| 31 5d 20 33 20 22 5c 0a | 53 45 54 4e 54 48 43 44 |1] 3 "\.|SETNTHCD|
|00004eb0| 52 20 4e 20 4c 49 53 54 | 20 4e 45 57 56 41 4c 20 |R N LIST| NEWVAL |
|00004ec0| 3d 3e 20 4e 45 57 56 41 | 4c 0a 41 73 20 61 20 73 |=> NEWVA|L.As a s|
|00004ed0| 69 64 65 20 65 66 66 65 | 63 74 2c 20 73 65 74 73 |ide effe|ct, sets|
|00004ee0| 20 74 68 65 20 4e 74 68 | 20 63 64 72 20 6f 66 20 | the Nth| cdr of |
|00004ef0| 4c 49 53 54 20 74 6f 20 | 4e 45 57 56 41 4c 2e 22 |LIST to |NEWVAL."|
|00004f00| 5d 29 0a 28 66 73 65 74 | 20 27 61 63 6f 6e 73 20 |]).(fset| 'acons |
|00004f10| 23 5b 28 6b 65 79 20 69 | 74 65 6d 20 61 6c 69 73 |#[(key i|tem alis|
|00004f20| 74 29 20 22 08 09 42 5c | 6e 42 87 22 20 5b 6b 65 |t) "..B\|nB." [ke|
|00004f30| 79 20 69 74 65 6d 20 61 | 6c 69 73 74 5d 20 32 20 |y item a|list] 2 |
|00004f40| 22 5c 0a 52 65 74 75 72 | 6e 20 61 20 6e 65 77 20 |"\.Retur|n a new |
|00004f50| 61 6c 69 73 74 20 77 69 | 74 68 20 4b 45 59 20 70 |alist wi|th KEY p|
|00004f60| 61 69 72 65 64 20 77 69 | 74 68 20 49 54 45 4d 3b |aired wi|th ITEM;|
|00004f70| 20 6f 74 68 65 72 77 69 | 73 65 20 6c 69 6b 65 20 | otherwi|se like |
|00004f80| 41 4c 49 53 54 2e 0a 44 | 6f 65 73 20 6e 6f 74 20 |ALIST..D|oes not |
|00004f90| 63 6f 70 79 20 41 4c 49 | 53 54 2e 22 5d 29 0a 28 |copy ALI|ST."]).(|
|00004fa0| 66 73 65 74 20 27 70 61 | 69 72 6c 69 73 20 23 5b |fset 'pa|irlis #[|
|00004fb0| 28 6b 65 79 73 20 64 61 | 74 61 20 26 6f 70 74 69 |(keys da|ta &opti|
|00004fc0| 6f 6e 61 6c 20 61 6c 69 | 73 74 29 20 22 08 47 09 |onal ali|st) ".G.|
|00004fd0| 47 55 ac 84 c2 c3 21 88 | 08 1c 09 1d 0c 40 1e 06 |GU....!.|.....@..|
|00004fe0| 0d 40 1e 07 0e 08 1e 09 | ca 0c 21 ac 9a cb 0e 06 |.@......|..!.....|
|00004ff0| 0e 07 0e 09 23 16 09 0c | 41 14 0d 41 15 0c 40 16 |....#...|A..A..@.|
|00005000| 06 0d 40 16 07 aa 61 0e | 09 2d 87 22 20 5b 6b 65 |..@...a.|.-." [ke|
|00005010| 79 73 20 64 61 74 61 20 | 65 72 72 6f 72 20 22 4b |ys data |error "K|
|00005020| 65 79 73 20 61 6e 64 20 | 64 61 74 61 20 73 68 6f |eys and |data sho|
|00005030| 75 6c 64 20 62 65 20 74 | 68 65 20 73 61 6d 65 20 |uld be t|he same |
|00005040| 6c 65 6e 67 74 68 22 20 | 6b 70 74 72 20 64 70 74 |length" |kptr dpt|
|00005050| 72 20 6b 65 79 20 69 74 | 65 6d 20 61 6c 69 73 74 |r key it|em alist|
|00005060| 20 72 65 73 75 6c 74 20 | 65 6e 64 70 20 61 63 6f | result |endp aco|
|00005070| 6e 73 5d 20 34 20 22 5c | 0a 52 65 74 75 72 6e 20 |ns] 4 "\|.Return |
|00005080| 61 20 6e 65 77 20 61 6c | 69 73 74 20 77 69 74 68 |a new al|ist with|
|00005090| 20 65 61 63 68 20 65 6c | 74 20 6f 66 20 4b 45 59 | each el|t of KEY|
|000050a0| 53 20 70 61 69 72 65 64 | 20 77 69 74 68 20 61 6e |S paired| with an|
|000050b0| 20 65 6c 74 20 6f 66 20 | 44 41 54 41 3b 0a 6f 70 | elt of |DATA;.op|
|000050c0| 74 69 6f 6e 61 6c 20 33 | 72 64 20 61 72 67 20 41 |tional 3|rd arg A|
|000050d0| 4c 49 53 54 20 69 73 20 | 6e 63 6f 6e 63 27 64 20 |LIST is |nconc'd |
|000050e0| 61 74 20 74 68 65 20 65 | 6e 64 2e 20 20 4b 45 59 |at the e|nd. KEY|
|000050f0| 53 20 61 6e 64 20 44 41 | 54 41 20 6d 75 73 74 0a |S and DA|TA must.|
|00005100| 68 61 76 65 20 74 68 65 | 20 73 61 6d 65 20 6c 65 |have the| same le|
|00005110| 6e 67 74 68 2e 22 5d 29 | 0a 28 62 79 74 65 2d 63 |ngth."])|.(byte-c|
|00005120| 6f 64 65 20 22 c0 10 c1 | 11 c2 12 c3 13 c4 14 c5 |ode "...|........|
|00005130| 15 c6 16 06 c7 16 07 c8 | 16 08 c9 16 09 ca 16 5c |........|.......\|
|00005140| 6e cb 16 0b c0 87 22 20 | 5b 3a 74 65 73 74 20 3a |n....." |[:test :|
|00005150| 74 65 73 74 2d 6e 6f 74 | 20 3a 6b 65 79 20 3a 70 |test-not| :key :p|
|00005160| 72 65 64 69 63 61 74 65 | 20 3a 73 74 61 72 74 20 |redicate| :start |
|00005170| 3a 65 6e 64 20 3a 73 74 | 61 72 74 31 20 3a 73 74 |:end :st|art1 :st|
|00005180| 61 72 74 32 20 3a 65 6e | 64 31 20 3a 65 6e 64 32 |art2 :en|d1 :end2|
|00005190| 20 3a 63 6f 75 6e 74 20 | 3a 66 72 6f 6d 2d 65 6e | :count |:from-en|
|000051a0| 64 5d 20 31 29 0a 28 66 | 73 65 74 20 27 73 6f 6d |d] 1).(f|set 'som|
|000051b0| 65 20 23 5b 28 70 72 65 | 64 20 73 65 71 20 26 72 |e #[(pre|d seq &r|
|000051c0| 65 73 74 20 6d 6f 72 65 | 73 65 71 73 29 20 22 c0 |est more|seqs) ".|
|000051d0| c1 5c 6e 0b 5c 22 21 1c | c5 1e 06 c5 1e 07 c5 1e |.\n.\"!.|........|
|000051e0| 08 0c 89 1e 09 40 1e 5c | 6e 0e 06 ac a3 cb 0e 09 |.....@.\|n.......|
|000051f0| 21 ac 9d cc 0e 0d 0e 5c | 6e 5c 22 89 16 08 ab 87 |!......\|n\".....|
|00005200| ce 16 06 0e 08 16 07 0e | 09 41 89 16 09 40 16 5c |........|.A...@.\|
|00005210| 6e aa 59 0e 07 2e 06 87 | 22 20 5b 72 65 61 73 73 |n.Y.....|" [reass|
|00005220| 65 6d 62 6c 65 2d 61 72 | 67 73 6c 69 73 74 73 20 |emble-ar|gslists |
|00005230| 6c 69 73 74 2a 20 73 65 | 71 20 6d 6f 72 65 73 65 |list* se|q morese|
|00005240| 71 73 20 61 72 67 73 20 | 6e 69 6c 20 72 65 61 64 |qs args |nil read|
|00005250| 79 20 72 65 73 75 6c 74 | 20 61 70 70 6c 79 76 61 |y result| applyva|
|00005260| 6c 20 72 65 6d 61 69 6e | 69 6e 67 20 63 75 72 72 |l remain|ing curr|
|00005270| 65 6e 74 20 65 6e 64 70 | 20 61 70 70 6c 79 20 70 |ent endp| apply p|
|00005280| 72 65 64 20 74 5d 20 35 | 20 22 5c 0a 54 65 73 74 |red t] 5| "\.Test|
|00005290| 20 50 52 45 44 49 43 41 | 54 45 20 6f 6e 20 65 61 | PREDICA|TE on ea|
|000052a0| 63 68 20 65 6c 65 6d 65 | 6e 74 20 6f 66 20 53 45 |ch eleme|nt of SE|
|000052b0| 51 55 45 4e 43 45 3b 20 | 69 73 20 69 74 20 65 76 |QUENCE; |is it ev|
|000052c0| 65 72 20 6e 6f 6e 2d 6e | 69 6c 3f 0a 45 78 74 72 |er non-n|il?.Extr|
|000052d0| 61 20 61 72 67 73 20 61 | 72 65 20 61 64 64 69 74 |a args a|re addit|
|000052e0| 69 6f 6e 61 6c 20 73 65 | 71 75 65 6e 63 65 73 3b |ional se|quences;|
|000052f0| 20 50 52 45 44 49 43 41 | 54 45 20 67 65 74 73 20 | PREDICA|TE gets |
|00005300| 6f 6e 65 20 61 72 67 20 | 66 72 6f 6d 20 65 61 63 |one arg |from eac|
|00005310| 68 0a 73 65 71 75 65 6e | 63 65 20 61 6e 64 20 77 |h.sequen|ce and w|
|00005320| 65 20 61 64 76 61 6e 63 | 65 20 64 6f 77 6e 20 61 |e advanc|e down a|
|00005330| 6c 6c 20 74 68 65 20 73 | 65 71 75 65 6e 63 65 73 |ll the s|equences|
|00005340| 20 74 6f 67 65 74 68 65 | 72 20 69 6e 20 6c 6f 63 | togethe|r in loc|
|00005350| 6b 2d 73 74 65 70 2e 0a | 41 20 73 65 71 75 65 6e |k-step..|A sequen|
|00005360| 63 65 20 6d 65 61 6e 73 | 20 65 69 74 68 65 72 20 |ce means| either |
|00005370| 61 20 6c 69 73 74 20 6f | 72 20 61 20 76 65 63 74 |a list o|r a vect|
|00005380| 6f 72 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 65 76 |or."]).(|fset 'ev|
|00005390| 65 72 79 20 23 5b 28 70 | 72 65 64 20 73 65 71 20 |ery #[(p|red seq |
|000053a0| 26 72 65 73 74 20 6d 6f | 72 65 73 65 71 73 29 20 |&rest mo|reseqs) |
|000053b0| 22 c0 c1 5c 6e 0b 5c 22 | 21 1c c5 1e 06 c7 1e 08 |"..\n.\"|!.......|
|000053c0| c5 1e 09 0c 89 1e 5c 6e | 40 1e 0b 0e 06 ac a2 cc |......\n|@.......|
|000053d0| 0e 5c 6e 21 ac 9c cd 0e | 0e 0e 0b 5c 22 89 16 09 |.\n!....|...\"...|
|000053e0| ac 86 c7 16 06 c5 16 08 | 0e 5c 6e 41 89 16 5c 6e |........|.\nA..\n|
|000053f0| 40 16 0b aa 5a 0e 08 2e | 06 87 22 20 5b 72 65 61 |@...Z...|.." [rea|
|00005400| 73 73 65 6d 62 6c 65 2d | 61 72 67 73 6c 69 73 74 |ssemble-|argslist|
|00005410| 73 20 6c 69 73 74 2a 20 | 73 65 71 20 6d 6f 72 65 |s list* |seq more|
|00005420| 73 65 71 73 20 61 72 67 | 73 20 6e 69 6c 20 72 65 |seqs arg|s nil re|
|00005430| 61 64 79 20 74 20 72 65 | 73 75 6c 74 20 61 70 70 |ady t re|sult app|
|00005440| 6c 79 76 61 6c 20 72 65 | 6d 61 69 6e 69 6e 67 20 |lyval re|maining |
|00005450| 63 75 72 72 65 6e 74 20 | 65 6e 64 70 20 61 70 70 |current |endp app|
|00005460| 6c 79 20 70 72 65 64 5d | 20 35 20 22 5c 0a 54 65 |ly pred]| 5 "\.Te|
|00005470| 73 74 20 50 52 45 44 49 | 43 41 54 45 20 6f 6e 20 |st PREDI|CATE on |
|00005480| 65 61 63 68 20 65 6c 65 | 6d 65 6e 74 20 6f 66 20 |each ele|ment of |
|00005490| 53 45 51 55 45 4e 43 45 | 3b 20 69 73 20 69 74 20 |SEQUENCE|; is it |
|000054a0| 61 6c 77 61 79 73 20 6e | 6f 6e 2d 6e 69 6c 3f 0a |always n|on-nil?.|
|000054b0| 45 78 74 72 61 20 61 72 | 67 73 20 61 72 65 20 61 |Extra ar|gs are a|
|000054c0| 64 64 69 74 69 6f 6e 61 | 6c 20 73 65 71 75 65 6e |dditiona|l sequen|
|000054d0| 63 65 73 3b 20 50 52 45 | 44 49 43 41 54 45 20 67 |ces; PRE|DICATE g|
|000054e0| 65 74 73 20 6f 6e 65 20 | 61 72 67 20 66 72 6f 6d |ets one |arg from|
|000054f0| 20 65 61 63 68 0a 73 65 | 71 75 65 6e 63 65 20 61 | each.se|quence a|
|00005500| 6e 64 20 77 65 20 61 64 | 76 61 6e 63 65 20 64 6f |nd we ad|vance do|
|00005510| 77 6e 20 61 6c 6c 20 74 | 68 65 20 73 65 71 75 65 |wn all t|he seque|
|00005520| 6e 63 65 73 20 74 6f 67 | 65 74 68 65 72 20 69 6e |nces tog|ether in|
|00005530| 20 6c 6f 63 6b 2d 73 74 | 65 70 2e 0a 41 20 73 65 | lock-st|ep..A se|
|00005540| 71 75 65 6e 63 65 20 6d | 65 61 6e 73 20 65 69 74 |quence m|eans eit|
|00005550| 68 65 72 20 61 20 6c 69 | 73 74 20 6f 72 20 61 20 |her a li|st or a |
|00005560| 76 65 63 74 6f 72 2e 22 | 5d 29 0a 28 66 73 65 74 |vector."|]).(fset|
|00005570| 20 27 6e 6f 74 61 6e 79 | 20 23 5b 28 70 72 65 64 | 'notany| #[(pred|
|00005580| 20 73 65 71 20 26 72 65 | 73 74 20 6d 6f 72 65 73 | seq &re|st mores|
|00005590| 65 71 73 29 20 22 c0 c1 | 5c 6e 0b 5c 22 21 1c c5 |eqs) "..|\n.\"!..|
|000055a0| 1e 06 c7 1e 08 c5 1e 09 | 0c 89 1e 5c 6e 40 1e 0b |........|...\n@..|
|000055b0| 0e 06 ac a2 cc 0e 5c 6e | 21 ac 9c cd 0e 0e 0e 0b |......\n|!.......|
|000055c0| 5c 22 89 16 09 ab 86 c7 | 16 06 c5 16 08 0e 5c 6e |\"......|......\n|
|000055d0| 41 89 16 5c 6e 40 16 0b | aa 5a 0e 08 2e 06 87 22 |A..\n@..|.Z....."|
|000055e0| 20 5b 72 65 61 73 73 65 | 6d 62 6c 65 2d 61 72 67 | [reasse|mble-arg|
|000055f0| 73 6c 69 73 74 73 20 6c | 69 73 74 2a 20 73 65 71 |slists l|ist* seq|
|00005600| 20 6d 6f 72 65 73 65 71 | 73 20 61 72 67 73 20 6e | moreseq|s args n|
|00005610| 69 6c 20 72 65 61 64 79 | 20 74 20 72 65 73 75 6c |il ready| t resul|
|00005620| 74 20 61 70 70 6c 79 76 | 61 6c 20 72 65 6d 61 69 |t applyv|al remai|
|00005630| 6e 69 6e 67 20 63 75 72 | 72 65 6e 74 20 65 6e 64 |ning cur|rent end|
|00005640| 70 20 61 70 70 6c 79 20 | 70 72 65 64 5d 20 35 20 |p apply |pred] 5 |
|00005650| 22 5c 0a 54 65 73 74 20 | 50 52 45 44 49 43 41 54 |"\.Test |PREDICAT|
|00005660| 45 20 6f 6e 20 65 61 63 | 68 20 65 6c 65 6d 65 6e |E on eac|h elemen|
|00005670| 74 20 6f 66 20 53 45 51 | 55 45 4e 43 45 3b 20 69 |t of SEQ|UENCE; i|
|00005680| 73 20 69 74 20 61 6c 77 | 61 79 73 20 6e 69 6c 3f |s it alw|ays nil?|
|00005690| 0a 45 78 74 72 61 20 61 | 72 67 73 20 61 72 65 20 |.Extra a|rgs are |
|000056a0| 61 64 64 69 74 69 6f 6e | 61 6c 20 73 65 71 75 65 |addition|al seque|
|000056b0| 6e 63 65 73 3b 20 50 52 | 45 44 49 43 41 54 45 20 |nces; PR|EDICATE |
|000056c0| 67 65 74 73 20 6f 6e 65 | 20 61 72 67 20 66 72 6f |gets one| arg fro|
|000056d0| 6d 20 65 61 63 68 0a 73 | 65 71 75 65 6e 63 65 20 |m each.s|equence |
|000056e0| 61 6e 64 20 77 65 20 61 | 64 76 61 6e 63 65 20 64 |and we a|dvance d|
|000056f0| 6f 77 6e 20 61 6c 6c 20 | 74 68 65 20 73 65 71 75 |own all |the sequ|
|00005700| 65 6e 63 65 73 20 74 6f | 67 65 74 68 65 72 20 69 |ences to|gether i|
|00005710| 6e 20 6c 6f 63 6b 2d 73 | 74 65 70 2e 0a 41 20 73 |n lock-s|tep..A s|
|00005720| 65 71 75 65 6e 63 65 20 | 6d 65 61 6e 73 20 65 69 |equence |means ei|
|00005730| 74 68 65 72 20 61 20 6c | 69 73 74 20 6f 72 20 61 |ther a l|ist or a|
|00005740| 20 76 65 63 74 6f 72 2e | 22 5d 29 0a 28 66 73 65 | vector.|"]).(fse|
|00005750| 74 20 27 6e 6f 74 65 76 | 65 72 79 20 23 5b 28 70 |t 'notev|ery #[(p|
|00005760| 72 65 64 20 73 65 71 20 | 26 72 65 73 74 20 6d 6f |red seq |&rest mo|
|00005770| 72 65 73 65 71 73 29 20 | 22 c0 c1 5c 6e 0b 5c 22 |reseqs) |"..\n.\"|
|00005780| 21 1c c5 1e 06 c5 1e 07 | c5 1e 08 0c 89 1e 09 40 |!.......|.......@|
|00005790| 1e 5c 6e 0e 06 ac a2 cb | 0e 09 21 ac 9c cc 0e 0d |.\n.....|..!.....|
|000057a0| 0e 5c 6e 5c 22 89 16 08 | ac 86 ce 16 06 ce 16 07 |.\n\"...|........|
|000057b0| 0e 09 41 89 16 09 40 16 | 5c 6e aa 5a 0e 07 2e 06 |..A...@.|\n.Z....|
|000057c0| 87 22 20 5b 72 65 61 73 | 73 65 6d 62 6c 65 2d 61 |." [reas|semble-a|
|000057d0| 72 67 73 6c 69 73 74 73 | 20 6c 69 73 74 2a 20 73 |rgslists| list* s|
|000057e0| 65 71 20 6d 6f 72 65 73 | 65 71 73 20 61 72 67 73 |eq mores|eqs args|
|000057f0| 20 6e 69 6c 20 72 65 61 | 64 79 20 72 65 73 75 6c | nil rea|dy resul|
|00005800| 74 20 61 70 70 6c 79 76 | 61 6c 20 72 65 6d 61 69 |t applyv|al remai|
|00005810| 6e 69 6e 67 20 63 75 72 | 72 65 6e 74 20 65 6e 64 |ning cur|rent end|
|00005820| 70 20 61 70 70 6c 79 20 | 70 72 65 64 20 74 5d 20 |p apply |pred t] |
|00005830| 35 20 22 5c 0a 54 65 73 | 74 20 50 52 45 44 49 43 |5 "\.Tes|t PREDIC|
|00005840| 41 54 45 20 6f 6e 20 65 | 61 63 68 20 65 6c 65 6d |ATE on e|ach elem|
|00005850| 65 6e 74 20 6f 66 20 53 | 45 51 55 45 4e 43 45 3b |ent of S|EQUENCE;|
|00005860| 20 69 73 20 69 74 20 73 | 6f 6d 65 74 69 6d 65 73 | is it s|ometimes|
|00005870| 20 6e 69 6c 3f 0a 45 78 | 74 72 61 20 61 72 67 73 | nil?.Ex|tra args|
|00005880| 20 61 72 65 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 | are add|itional |
|00005890| 73 65 71 75 65 6e 63 65 | 73 3b 20 50 52 45 44 49 |sequence|s; PREDI|
|000058a0| 43 41 54 45 20 67 65 74 | 73 20 6f 6e 65 20 61 72 |CATE get|s one ar|
|000058b0| 67 20 66 72 6f 6d 20 65 | 61 63 68 0a 73 65 71 75 |g from e|ach.sequ|
|000058c0| 65 6e 63 65 20 61 6e 64 | 20 77 65 20 61 64 76 61 |ence and| we adva|
|000058d0| 6e 63 65 20 64 6f 77 6e | 20 61 6c 6c 20 74 68 65 |nce down| all the|
|000058e0| 20 73 65 71 75 65 6e 63 | 65 73 20 74 6f 67 65 74 | sequenc|es toget|
|000058f0| 68 65 72 20 69 6e 20 6c | 6f 63 6b 2d 73 74 65 70 |her in l|ock-step|
|00005900| 2e 0a 41 20 73 65 71 75 | 65 6e 63 65 20 6d 65 61 |..A sequ|ence mea|
|00005910| 6e 73 20 65 69 74 68 65 | 72 20 61 20 6c 69 73 74 |ns eithe|r a list|
|00005920| 20 6f 72 20 61 20 76 65 | 63 74 6f 72 2e 22 5d 29 | or a ve|ctor."])|
|00005930| 0a 28 66 73 65 74 20 27 | 73 65 74 65 6c 74 20 23 |.(fset '|setelt #|
|00005940| 5b 28 73 65 71 20 6e 20 | 6e 65 77 76 61 6c 29 20 |[(seq n |newval) |
|00005950| 22 08 47 19 5c 6e c3 57 | ac 85 5c 6e 09 59 ab 87 |".G.\n.W|..\n.Y..|
|00005960| c4 c5 5c 6e 09 23 aa 9e | 08 3c ab 88 c6 5c 6e 08 |..\n.#..|.<...\n.|
|00005970| 0e 07 23 aa 92 c8 08 21 | ab 87 08 5c 6e 0e 07 49 |..#....!|...\n..I|
|00005980| aa 86 c4 c9 ca 08 21 5c | 22 29 87 22 20 5b 73 65 |......!\|")." [se|
|00005990| 71 20 6c 20 6e 20 30 20 | 65 72 72 6f 72 20 22 4e |q l n 0 |error "N|
|000059a0| 28 25 64 29 20 73 68 6f | 75 6c 64 20 62 65 20 62 |(%d) sho|uld be b|
|000059b0| 65 74 77 65 65 6e 20 30 | 20 61 6e 64 20 25 64 22 |etween 0| and %d"|
|000059c0| 20 73 65 74 6e 74 68 20 | 6e 65 77 76 61 6c 20 61 | setnth |newval a|
|000059d0| 72 72 61 79 70 20 22 53 | 45 51 20 73 68 6f 75 6c |rrayp "S|EQ shoul|
|000059e0| 64 20 62 65 20 61 20 73 | 65 71 75 65 6e 63 65 2c |d be a s|equence,|
|000059f0| 20 6e 6f 74 20 60 25 73 | 27 22 20 70 72 69 6e 31 | not `%s|'" prin1|
|00005a00| 2d 74 6f 2d 73 74 72 69 | 6e 67 5d 20 34 20 22 5c |-to-stri|ng] 4 "\|
|00005a10| 0a 49 6e 20 53 45 51 55 | 45 4e 43 45 2c 20 73 65 |.In SEQU|ENCE, se|
|00005a20| 74 20 74 68 65 20 4e 74 | 68 20 65 6c 65 6d 65 6e |t the Nt|h elemen|
|00005a30| 74 20 74 6f 20 4e 45 57 | 56 41 4c 2e 20 20 52 65 |t to NEW|VAL. Re|
|00005a40| 74 75 72 6e 73 20 4e 45 | 57 56 41 4c 2e 0a 41 20 |turns NE|WVAL..A |
|00005a50| 73 65 71 75 65 6e 63 65 | 20 6d 65 61 6e 73 20 65 |sequence| means e|
|00005a60| 69 74 68 65 72 20 61 20 | 6c 69 73 74 20 6f 72 20 |ither a |list or |
|00005a70| 61 20 76 65 63 74 6f 72 | 2e 22 5d 29 0a 28 66 73 |a vector|."]).(fs|
|00005a80| 65 74 20 27 65 78 74 72 | 61 63 74 2d 66 72 6f 6d |et 'extr|act-from|
|00005a90| 2d 6b 6c 69 73 74 20 23 | 5b 28 6b 65 79 20 6b 6c |-klist #|[(key kl|
|00005aa0| 69 73 74 20 26 6f 70 74 | 69 6f 6e 61 6c 20 64 65 |ist &opt|ional de|
|00005ab0| 66 61 75 6c 74 29 20 22 | c0 09 5c 6e 5c 22 41 89 |fault) "|..\n\"A.|
|00005ac0| 1b ae 81 0c 29 87 22 20 | 5b 61 73 73 6f 63 20 6b |....)." |[assoc k|
|00005ad0| 65 79 20 6b 6c 69 73 74 | 20 72 65 74 72 69 65 76 |ey klist| retriev|
|00005ae0| 65 64 20 64 65 66 61 75 | 6c 74 5d 20 34 20 22 5c |ed defau|lt] 4 "\|
|00005af0| 0a 45 58 54 52 41 43 54 | 2d 46 52 4f 4d 2d 4b 4c |.EXTRACT|-FROM-KL|
|00005b00| 49 53 54 20 4b 45 59 20 | 4b 4c 49 53 54 20 5b 44 |IST KEY |KLIST [D|
|00005b10| 45 46 41 55 4c 54 5d 20 | 3d 3e 20 76 61 6c 75 65 |EFAULT] |=> value|
|00005b20| 20 6f 66 20 4b 45 59 20 | 6f 72 20 44 45 46 41 55 | of KEY |or DEFAU|
|00005b30| 4c 54 0a 45 78 74 72 61 | 63 74 20 76 61 6c 75 65 |LT.Extra|ct value|
|00005b40| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00005b50| 20 4b 45 59 20 69 6e 20 | 4b 4c 49 53 54 20 28 72 | KEY in |KLIST (r|
|00005b60| 65 74 75 72 6e 20 44 45 | 46 41 55 4c 54 20 69 66 |eturn DE|FAULT if|
|00005b70| 20 6e 69 6c 29 2e 22 5d | 29 0a 28 66 73 65 74 20 | nil)."]|).(fset |
|00005b80| 27 61 64 64 2d 74 6f 2d | 6b 6c 69 73 74 20 23 5b |'add-to-|klist #[|
|00005b90| 28 6b 65 79 20 69 74 65 | 6d 20 6b 6c 69 73 74 29 |(key ite|m klist)|
|00005ba0| 20 22 c0 09 5c 6e 0b 23 | 89 13 87 22 20 5b 61 63 | "..\n.#|..." [ac|
|00005bb0| 6f 6e 73 20 6b 65 79 20 | 69 74 65 6d 20 6b 6c 69 |ons key |item kli|
|00005bc0| 73 74 5d 20 34 20 22 5c | 0a 41 44 44 2d 54 4f 2d |st] 4 "\|.ADD-TO-|
|00005bd0| 4b 4c 49 53 54 20 4b 45 | 59 20 49 54 45 4d 20 4b |KLIST KE|Y ITEM K|
|00005be0| 4c 49 53 54 20 3d 3e 20 | 6e 65 77 20 4b 4c 49 53 |LIST => |new KLIS|
|00005bf0| 54 0a 41 64 64 20 61 73 | 73 6f 63 69 61 74 69 6f |T.Add as|sociatio|
|00005c00| 6e 20 28 4b 45 59 20 2e | 20 49 54 45 4d 29 20 74 |n (KEY .| ITEM) t|
|00005c10| 6f 20 4b 4c 49 53 54 2e | 22 5d 29 0a 28 66 73 65 |o KLIST.|"]).(fse|
|00005c20| 74 20 27 65 6c 74 2d 73 | 61 74 69 73 66 69 65 73 |t 'elt-s|atisfies|
|00005c30| 2d 74 65 73 74 2d 70 20 | 23 5b 28 69 74 65 6d 20 |-test-p |#[(item |
|00005c40| 65 6c 74 20 6b 6c 69 73 | 74 29 20 22 c0 09 5c 6e |elt klis|t) "..\n|
|00005c50| 5c 22 c0 0b 5c 6e 5c 22 | c0 0c 5c 6e c5 23 1e 06 |\"..\n\"|..\n.#..|
|00005c60| 1e 07 89 1e 08 ab 8c 0e | 08 0e 09 0e 06 0e 5c 6e |........|......\n|
|00005c70| 21 5c 22 aa 97 0e 07 ab | 8d 0e 07 0e 09 0e 06 0e |!\".....|........|
|00005c80| 5c 6e 21 5c 22 3f aa 86 | cb cc cd 5c 6e 21 5c 22 |\n!\"?..|...\n!\"|
|00005c90| 2b 87 22 20 5b 65 78 74 | 72 61 63 74 2d 66 72 6f |+." [ext|ract-fro|
|00005ca0| 6d 2d 6b 6c 69 73 74 20 | 3a 74 65 73 74 20 6b 6c |m-klist |:test kl|
|00005cb0| 69 73 74 20 3a 74 65 73 | 74 2d 6e 6f 74 20 3a 6b |ist :tes|t-not :k|
|00005cc0| 65 79 20 69 64 65 6e 74 | 69 74 79 20 6b 65 79 66 |ey ident|ity keyf|
|00005cd0| 6e 20 74 65 73 74 2d 6e | 6f 74 20 74 65 73 74 20 |n test-n|ot test |
|00005ce0| 69 74 65 6d 20 65 6c 74 | 20 65 72 72 6f 72 20 22 |item elt| error "|
|00005cf0| 4e 65 69 74 68 65 72 20 | 3a 74 65 73 74 20 6e 6f |Neither |:test no|
|00005d00| 72 20 3a 74 65 73 74 2d | 6e 6f 74 20 69 6e 20 60 |r :test-|not in `|
|00005d10| 25 73 27 22 20 70 72 69 | 6e 31 2d 74 6f 2d 73 74 |%s'" pri|n1-to-st|
|00005d20| 72 69 6e 67 5d 20 37 20 | 22 5c 0a 45 4c 54 2d 53 |ring] 7 |"\.ELT-S|
|00005d30| 41 54 49 53 46 49 45 53 | 2d 54 45 53 54 2d 50 20 |ATISFIES|-TEST-P |
|00005d40| 49 54 45 4d 20 45 4c 54 | 20 4b 4c 49 53 54 20 3d |ITEM ELT| KLIST =|
|00005d50| 3e 20 74 20 6f 72 20 6e | 69 6c 0a 4b 4c 49 53 54 |> t or n|il.KLIST|
|00005d60| 20 65 6e 63 6f 64 65 73 | 20 61 20 6b 65 79 77 6f | encodes| a keywo|
|00005d70| 72 64 2d 61 72 67 75 6d | 65 6e 74 73 20 74 65 73 |rd-argum|ents tes|
|00005d80| 74 2c 20 61 73 20 69 6e | 20 43 48 2e 20 31 34 20 |t, as in| CH. 14 |
|00005d90| 6f 66 20 43 4c 74 4c 2e | 0a 54 72 75 65 20 69 66 |of CLtL.|.True if|
|00005da0| 20 74 68 65 20 67 69 76 | 65 6e 20 49 54 45 4d 20 | the giv|en ITEM |
|00005db0| 61 6e 64 20 45 4c 54 20 | 73 61 74 69 73 66 79 20 |and ELT |satisfy |
|00005dc0| 74 68 65 20 74 65 73 74 | 2e 22 5d 29 0a 28 66 73 |the test|."]).(fs|
|00005dd0| 65 74 20 27 65 6c 74 2d | 73 61 74 69 73 66 69 65 |et 'elt-|satisfie|
|00005de0| 73 2d 69 66 2d 70 20 23 | 5b 28 69 74 65 6d 20 6b |s-if-p #|[(item k|
|00005df0| 6c 69 73 74 29 20 22 c0 | 09 5c 6e 5c 22 c0 0b c4 |list) ".|.\n\"...|
|00005e00| 5c 22 1d 89 1e 06 0e 07 | 0d 0e 08 21 5c 22 2a 87 |\"......|...!\"*.|
|00005e10| 22 20 5b 65 78 74 72 61 | 63 74 2d 66 72 6f 6d 2d |" [extra|ct-from-|
|00005e20| 6b 6c 69 73 74 20 3a 70 | 72 65 64 69 63 61 74 65 |klist :p|redicate|
|00005e30| 20 6b 6c 69 73 74 20 3a | 6b 65 79 20 69 64 65 6e | klist :|key iden|
|00005e40| 74 69 74 79 20 6b 65 79 | 66 6e 20 70 72 65 64 69 |tity key|fn predi|
|00005e50| 63 61 74 65 20 69 74 65 | 6d 20 65 6c 74 5d 20 35 |cate ite|m elt] 5|
|00005e60| 20 22 5c 0a 45 4c 54 2d | 53 41 54 49 53 46 49 45 | "\.ELT-|SATISFIE|
|00005e70| 53 2d 49 46 2d 50 20 49 | 54 45 4d 20 4b 4c 49 53 |S-IF-P I|TEM KLIS|
|00005e80| 54 20 3d 3e 20 74 20 6f | 72 20 6e 69 6c 0a 54 72 |T => t o|r nil.Tr|
|00005e90| 75 65 20 69 66 20 61 6e | 20 2d 69 66 20 73 74 79 |ue if an| -if sty|
|00005ea0| 6c 65 20 66 75 6e 63 74 | 69 6f 6e 20 77 61 73 20 |le funct|ion was |
|00005eb0| 63 61 6c 6c 65 64 20 61 | 6e 64 20 49 54 45 4d 20 |called a|nd ITEM |
|00005ec0| 73 61 74 69 73 66 69 65 | 73 20 74 68 65 0a 70 72 |satisfie|s the.pr|
|00005ed0| 65 64 69 63 61 74 65 20 | 75 6e 64 65 72 20 3a 70 |edicate |under :p|
|00005ee0| 72 65 64 69 63 61 74 65 | 20 69 6e 20 4b 4c 49 53 |redicate| in KLIS|
|00005ef0| 54 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 65 6c 74 |T."]).(f|set 'elt|
|00005f00| 2d 73 61 74 69 73 66 69 | 65 73 2d 69 66 2d 6e 6f |-satisfi|es-if-no|
|00005f10| 74 2d 70 20 23 5b 28 69 | 74 65 6d 20 6b 6c 69 73 |t-p #[(i|tem klis|
|00005f20| 74 29 20 22 c0 09 5c 6e | 5c 22 c0 0b c4 5c 22 1d |t) "..\n|\"...\".|
|00005f30| 89 1e 06 0e 07 0d 0e 08 | 21 5c 22 2a 3f 87 22 20 |........|!\"*?." |
|00005f40| 5b 65 78 74 72 61 63 74 | 2d 66 72 6f 6d 2d 6b 6c |[extract|-from-kl|
|00005f50| 69 73 74 20 3a 70 72 65 | 64 69 63 61 74 65 20 6b |ist :pre|dicate k|
|00005f60| 6c 69 73 74 20 3a 6b 65 | 79 20 69 64 65 6e 74 69 |list :ke|y identi|
|00005f70| 74 79 20 6b 65 79 66 6e | 20 70 72 65 64 69 63 61 |ty keyfn| predica|
|00005f80| 74 65 20 69 74 65 6d 20 | 65 6c 74 5d 20 35 20 22 |te item |elt] 5 "|
|00005f90| 5c 0a 45 4c 54 2d 53 41 | 54 49 53 46 49 45 53 2d |\.ELT-SA|TISFIES-|
|00005fa0| 49 46 2d 4e 4f 54 2d 50 | 20 49 54 45 4d 20 4b 4c |IF-NOT-P| ITEM KL|
|00005fb0| 49 53 54 20 3d 3e 20 74 | 20 6f 72 20 6e 69 6c 0a |IST => t| or nil.|
|00005fc0| 4b 4c 49 53 54 20 65 6e | 63 6f 64 65 73 20 61 20 |KLIST en|codes a |
|00005fd0| 6b 65 79 77 6f 72 64 2d | 61 72 67 75 6d 65 6e 74 |keyword-|argument|
|00005fe0| 73 20 74 65 73 74 2c 20 | 61 73 20 69 6e 20 43 48 |s test, |as in CH|
|00005ff0| 2e 20 31 34 20 6f 66 20 | 43 4c 74 4c 2e 0a 54 72 |. 14 of |CLtL..Tr|
|00006000| 75 65 20 69 66 20 61 6e | 20 2d 69 66 2d 6e 6f 74 |ue if an| -if-not|
|00006010| 20 73 74 79 6c 65 20 66 | 75 6e 63 74 69 6f 6e 20 | style f|unction |
|00006020| 77 61 73 20 63 61 6c 6c | 65 64 20 61 6e 64 20 49 |was call|ed and I|
|00006030| 54 45 4d 20 64 6f 65 73 | 20 6e 6f 74 20 73 61 74 |TEM does| not sat|
|00006040| 69 73 66 79 0a 74 68 65 | 20 70 72 65 64 69 63 61 |isfy.the| predica|
|00006050| 74 65 20 75 6e 64 65 72 | 20 3a 70 72 65 64 69 63 |te under| :predic|
|00006060| 61 74 65 20 69 6e 20 4b | 4c 49 53 54 2e 22 5d 29 |ate in K|LIST."])|
|00006070| 0a 28 66 73 65 74 20 27 | 65 6c 74 73 2d 6d 61 74 |.(fset '|elts-mat|
|00006080| 63 68 2d 75 6e 64 65 72 | 2d 6b 6c 69 73 74 2d 70 |ch-under|-klist-p|
|00006090| 20 23 5b 28 65 31 20 65 | 32 20 6b 6c 69 73 74 29 | #[(e1 e|2 klist)|
|000060a0| 20 22 c0 09 5c 6e 5c 22 | c0 0b 5c 6e 5c 22 c0 0c | "..\n\"|..\n\"..|
|000060b0| 5c 6e c5 23 1e 06 1e 07 | 89 1e 08 ab 8f 0e 08 0e |\n.#....|........|
|000060c0| 06 0e 09 21 0e 06 0e 5c | 6e 21 5c 22 aa 9a 0e 07 |...!...\|n!\"....|
|000060d0| ab 90 0e 07 0e 06 0e 09 | 21 0e 06 0e 5c 6e 21 5c |........|!...\n!\|
|000060e0| 22 3f aa 86 cb cc cd 5c | 6e 21 5c 22 2b 87 22 20 |"?.....\|n!\"+." |
|000060f0| 5b 65 78 74 72 61 63 74 | 2d 66 72 6f 6d 2d 6b 6c |[extract|-from-kl|
|00006100| 69 73 74 20 3a 74 65 73 | 74 20 6b 6c 69 73 74 20 |ist :tes|t klist |
|00006110| 3a 74 65 73 74 2d 6e 6f | 74 20 3a 6b 65 79 20 69 |:test-no|t :key i|
|00006120| 64 65 6e 74 69 74 79 20 | 6b 65 79 66 6e 20 74 65 |dentity |keyfn te|
|00006130| 73 74 2d 6e 6f 74 20 74 | 65 73 74 20 65 31 20 65 |st-not t|est e1 e|
|00006140| 32 20 65 72 72 6f 72 20 | 22 4e 65 69 74 68 65 72 |2 error |"Neither|
|00006150| 20 3a 74 65 73 74 20 6e | 6f 72 20 3a 74 65 73 74 | :test n|or :test|
|00006160| 2d 6e 6f 74 20 69 6e 20 | 60 25 73 27 22 20 70 72 |-not in |`%s'" pr|
|00006170| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 5d 20 37 |in1-to-s|tring] 7|
|00006180| 20 22 5c 0a 45 4c 54 53 | 2d 4d 41 54 43 48 2d 55 | "\.ELTS|-MATCH-U|
|00006190| 4e 44 45 52 2d 4b 4c 49 | 53 54 2d 50 20 45 31 20 |NDER-KLI|ST-P E1 |
|000061a0| 45 32 20 4b 4c 49 53 54 | 20 3d 3e 20 74 20 6f 72 |E2 KLIST| => t or|
|000061b0| 20 6e 69 6c 0a 4b 4c 49 | 53 54 20 65 6e 63 6f 64 | nil.KLI|ST encod|
|000061c0| 65 73 20 61 20 6b 65 79 | 77 6f 72 64 2d 61 72 67 |es a key|word-arg|
|000061d0| 75 6d 65 6e 74 73 20 74 | 65 73 74 2c 20 61 73 20 |uments t|est, as |
|000061e0| 69 6e 20 43 48 2e 20 31 | 34 20 6f 66 20 43 4c 74 |in CH. 1|4 of CLt|
|000061f0| 4c 2e 0a 54 72 75 65 20 | 69 66 20 65 6c 65 6d 65 |L..True |if eleme|
|00006200| 6e 74 73 20 45 31 20 61 | 6e 64 20 45 32 20 6d 61 |nts E1 a|nd E2 ma|
|00006210| 74 63 68 20 75 6e 64 65 | 72 20 74 68 65 20 74 65 |tch unde|r the te|
|00006220| 73 74 73 20 65 6e 63 6f | 64 65 64 20 69 6e 20 4b |sts enco|ded in K|
|00006230| 4c 49 53 54 2e 22 5d 29 | 0a 28 62 79 74 65 2d 63 |LIST."])|.(byte-c|
|00006240| 6f 64 65 20 22 c0 c1 c2 | c3 23 88 c0 c4 c2 c3 23 |ode "...|.#.....#|
|00006250| 88 c0 c5 c2 c6 23 88 c0 | c7 c2 c8 23 88 c0 c9 c2 |.....#..|...#....|
|00006260| c8 23 87 22 20 5b 70 75 | 74 20 6d 75 6c 74 69 70 |.#." [pu|t multip|
|00006270| 6c 65 2d 76 61 6c 75 65 | 2d 62 69 6e 64 20 6c 69 |le-value|-bind li|
|00006280| 73 70 2d 69 6e 64 65 6e | 74 2d 66 75 6e 63 74 69 |sp-inden|t-functi|
|00006290| 6f 6e 20 32 20 6d 75 6c | 74 69 70 6c 65 2d 76 61 |on 2 mul|tiple-va|
|000062a0| 6c 75 65 2d 73 65 74 71 | 20 6d 75 6c 74 69 70 6c |lue-setq| multipl|
|000062b0| 65 2d 76 61 6c 75 65 2d | 6c 69 73 74 20 6e 69 6c |e-value-|list nil|
|000062c0| 20 6d 75 6c 74 69 70 6c | 65 2d 76 61 6c 75 65 2d | multipl|e-value-|
|000062d0| 63 61 6c 6c 20 31 20 6d | 75 6c 74 69 70 6c 65 2d |call 1 m|ultiple-|
|000062e0| 76 61 6c 75 65 2d 70 72 | 6f 67 31 5d 20 34 29 0a |value-pr|og1] 4).|
|000062f0| 28 64 65 66 76 61 72 20 | 2a 6d 76 61 6c 75 65 73 |(defvar |*mvalues|
|00006300| 2d 76 61 6c 75 65 73 2a | 20 6e 69 6c 20 22 5c 0a |-values*| nil "\.|
|00006310| 4d 6f 73 74 20 72 65 63 | 65 6e 74 6c 79 20 72 65 |Most rec|ently re|
|00006320| 74 75 72 6e 65 64 20 6d | 75 6c 74 69 70 6c 65 2d |turned m|ultiple-|
|00006330| 76 61 6c 75 65 73 22 29 | 0a 28 64 65 66 76 61 72 |values")|.(defvar|
|00006340| 20 2a 6d 76 61 6c 75 65 | 73 2d 63 6f 75 6e 74 2a | *mvalue|s-count*|
|00006350| 20 6e 69 6c 20 22 5c 0a | 43 6f 75 6e 74 20 6f 66 | nil "\.|Count of|
|00006360| 20 6d 75 6c 74 69 70 6c | 65 2d 76 61 6c 75 65 73 | multipl|e-values|
|00006370| 20 72 65 74 75 72 6e 65 | 64 2c 20 6f 72 20 6e 69 | returne|d, or ni|
|00006380| 6c 20 69 66 20 74 68 65 | 20 6d 65 63 68 61 6e 69 |l if the| mechani|
|00006390| 73 6d 20 77 61 73 20 6e | 6f 74 20 75 73 65 64 22 |sm was n|ot used"|
|000063a0| 29 0a 28 66 73 65 74 20 | 27 76 61 6c 75 65 73 20 |).(fset |'values |
|000063b0| 23 5b 28 26 72 65 73 74 | 20 76 61 6c 2d 66 6f 72 |#[(&rest| val-for|
|000063c0| 6d 73 29 20 22 08 89 11 | 47 12 09 40 87 22 20 5b |ms) "...|G..@." [|
|000063d0| 76 61 6c 2d 66 6f 72 6d | 73 20 2a 6d 76 61 6c 75 |val-form|s *mvalu|
|000063e0| 65 73 2d 76 61 6c 75 65 | 73 2a 20 2a 6d 76 61 6c |es-value|s* *mval|
|000063f0| 75 65 73 2d 63 6f 75 6e | 74 2a 5d 20 32 20 22 5c |ues-coun|t*] 2 "\|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.