home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Icon 8.1 / mep1 / ProIcon Help < prev    next >
MacBinary  |  1991-09-14  |  76.0 KB  |  [ICNH/PICN]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ProIcon Help

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sun Sep 9 02:52:08 1990, modified Sat Sep 14 16:06:37 1991, creator 'PICN', type 'ICNH', 69385 bytes "ProIcon Help" , at 0x10f89 8169 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ICNH]
macFileCreator[PICN]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 50 72 6f 49 63 6f | 6e 20 48 65 6c 70 00 00 |..ProIco|n Help..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 49 43 4e 48 50 49 43 | 4e 01 00 00 00 00 00 00 |.ICNHPIC|N.......|
|00000050| 00 00 00 00 01 0f 09 00 | 00 1f e9 a3 0f 97 18 a4 |........|........|
|00000060| f8 1c 4d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..M.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c dc 00 00 |........|....|...|
|00000080| a9 20 31 39 38 39 20 54 | 68 65 20 50 72 6f 49 63 |. 1989 T|he ProIc|
|00000090| 6f 6e 20 47 72 6f 75 70 | 2e 20 20 41 6c 6c 20 52 |on Group|. All R|
|000000a0| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 2e 0d |ights Re|served..|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|000000e0| 0d 61 62 73 28 4e 29 20 | 3a 20 4e 20 20 20 20 20 |.abs(N) |: N |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6d 70 | | comp|
|00000110| 75 74 65 20 61 62 73 6f | 6c 75 74 65 20 76 61 6c |ute abso|lute val|
|00000120| 75 65 0d 0d 61 62 73 28 | 4e 29 20 70 72 6f 64 75 |ue..abs(|N) produ|
|00000130| 63 65 73 20 74 68 65 20 | 61 62 73 6f 6c 75 74 65 |ces the |absolute|
|00000140| 20 76 61 6c 75 65 20 6f | 66 20 4e 2e 0d 0d 45 72 | value o|f N...Er|
|00000150| 72 6f 72 3a 20 20 20 20 | 31 30 32 20 20 20 20 20 |ror: |102 |
|00000160| 4e 20 6e 6f 74 20 6e 75 | 6d 65 72 69 63 0d 61 63 |N not nu|meric.ac|
|00000170| 6f 73 28 72 31 29 20 3a | 20 72 32 20 20 20 20 20 |os(r1) :| r2 |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6f 6d | | com|
|000001a0| 70 75 74 65 20 61 72 63 | 20 63 6f 73 69 6e 65 0d |pute arc| cosine.|
|000001b0| 0d 61 63 6f 73 28 72 31 | 29 20 70 72 6f 64 75 63 |.acos(r1|) produc|
|000001c0| 65 73 20 74 68 65 20 61 | 72 63 20 63 6f 73 69 6e |es the a|rc cosin|
|000001d0| 65 20 6f 66 20 72 31 20 | 69 6e 20 74 68 65 20 72 |e of r1 |in the r|
|000001e0| 61 6e 67 65 20 6f 66 20 | 30 20 74 6f 20 70 69 2e |ange of |0 to pi.|
|000001f0| 0d 0d 45 72 72 6f 72 73 | 3a 20 20 20 31 30 32 20 |..Errors|: 102 |
|00000200| 20 20 20 20 72 31 20 6e | 6f 74 20 72 65 61 6c 0d | r1 n|ot real.|
|00000210| 20 20 20 20 20 20 20 20 | 20 20 32 30 35 20 20 20 | | 205 |
|00000220| 20 20 7c 72 31 7c 20 67 | 72 65 61 74 65 72 20 74 | |r1| g|reater t|
|00000230| 68 61 6e 20 31 0d 0d 53 | 65 65 20 61 6c 73 6f 3a |han 1..S|ee also:|
|00000240| 20 63 6f 73 28 29 0d 61 | 6e 79 28 63 2c 73 2c 69 | cos().a|ny(c,s,i|
|00000250| 31 2c 69 32 29 20 3a 20 | 69 33 20 20 20 20 20 20 |1,i2) : |i3 |
|00000260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000270| 6c 6f 63 61 74 65 20 69 | 6e 69 74 69 61 6c 20 63 |locate i|nitial c|
|00000280| 68 61 72 61 63 74 65 72 | 0d 0d 61 6e 79 28 63 2c |haracter|..any(c,|
|00000290| 73 2c 69 31 2c 69 32 29 | 20 73 75 63 63 65 65 64 |s,i1,i2)| succeed|
|000002a0| 73 20 61 6e 64 20 70 72 | 6f 64 75 63 65 73 20 69 |s and pr|oduces i|
|000002b0| 31 20 2b 20 31 2c 20 70 | 72 6f 76 69 64 65 64 20 |1 + 1, p|rovided |
|000002c0| 73 5b 69 31 5d 20 69 73 | 20 69 6e 0d 63 20 61 6e |s[i1] is| in.c an|
|000002d0| 64 20 69 32 20 69 73 20 | 67 72 65 61 74 65 72 20 |d i2 is |greater |
|000002e0| 74 68 61 6e 20 69 31 2e | 20 20 49 74 20 66 61 69 |than i1.| It fai|
|000002f0| 6c 73 20 6f 74 68 65 72 | 77 69 73 65 2e 0d 0d 44 |ls other|wise...D|
|00000300| 65 66 61 75 6c 74 73 3a | 20 73 20 20 20 20 20 20 |efaults:| s |
|00000310| 20 26 73 75 62 6a 65 63 | 74 0d 20 20 20 20 20 20 | &subjec|t. |
|00000320| 20 20 20 20 69 31 20 20 | 20 20 20 20 26 70 6f 73 | i1 | &pos|
|00000330| 20 69 66 20 73 20 69 73 | 20 64 65 66 61 75 6c 74 | if s is| default|
|00000340| 65 64 2c 20 6f 74 68 65 | 72 77 69 73 65 20 31 0d |ed, othe|rwise 1.|
|00000350| 20 20 20 20 20 20 20 20 | 20 20 69 32 20 20 20 20 | | i2 |
|00000360| 20 20 30 0d 0d 45 72 72 | 6f 72 73 3a 20 20 20 31 | 0..Err|ors: 1|
|00000370| 30 31 20 20 20 20 20 69 | 31 20 6f 72 20 69 32 20 |01 i|1 or i2 |
|00000380| 6e 6f 74 20 69 6e 74 65 | 67 65 72 0d 20 20 20 20 |not inte|ger. |
|00000390| 20 20 20 20 20 20 31 30 | 33 20 20 20 20 20 73 20 | 10|3 s |
|000003a0| 6e 6f 74 20 73 74 72 69 | 6e 67 0d 20 20 20 20 20 |not stri|ng. |
|000003b0| 20 20 20 20 20 31 30 34 | 20 20 20 20 20 63 20 6e | 104| c n|
|000003c0| 6f 74 20 63 73 65 74 0d | 0d 53 65 65 20 61 6c 73 |ot cset.|.See als|
|000003d0| 6f 3a 20 6d 61 6e 79 28 | 29 20 61 6e 64 20 6d 61 |o: many(|) and ma|
|000003e0| 74 63 68 28 29 0d 61 72 | 67 73 28 70 29 20 3a 20 |tch().ar|gs(p) : |
|000003f0| 69 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |i | |
|00000400| 20 20 20 20 20 20 67 65 | 74 20 6e 75 6d 62 65 72 | ge|t number|
|00000410| 20 6f 66 20 70 72 6f 63 | 65 64 75 72 65 20 61 72 | of proc|edure ar|
|00000420| 67 75 6d 65 6e 74 73 0d | 0d 61 72 67 73 28 70 29 |guments.|.args(p)|
|00000430| 20 70 72 6f 64 75 63 65 | 73 20 74 68 65 20 6e 75 | produce|s the nu|
|00000440| 6d 62 65 72 20 6f 66 20 | 61 72 67 75 6d 65 6e 74 |mber of |argument|
|00000450| 73 20 66 6f 72 20 70 72 | 6f 63 65 64 75 72 65 20 |s for pr|ocedure |
|00000460| 70 2e 20 20 46 6f 72 0d | 62 75 69 6c 74 2d 69 6e |p. For.|built-in|
|00000470| 20 70 72 6f 63 65 64 75 | 72 65 73 20 77 69 74 68 | procedu|res with|
|00000480| 20 61 20 76 61 72 69 61 | 62 6c 65 20 6e 75 6d 62 | a varia|ble numb|
|00000490| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 2c |er of ar|guments,|
|000004a0| 20 74 68 65 0d 76 61 6c | 75 65 20 70 72 6f 64 75 | the.val|ue produ|
|000004b0| 63 65 64 20 69 73 20 2d | 31 2e 20 46 6f 72 20 64 |ced is -|1. For d|
|000004c0| 65 63 6c 61 72 65 64 20 | 70 72 6f 63 65 64 75 72 |eclared |procedur|
|000004d0| 65 73 20 77 69 74 68 20 | 61 20 76 61 72 69 61 62 |es with |a variab|
|000004e0| 6c 65 0d 6e 75 6d 62 65 | 72 20 6f 66 20 61 72 67 |le.numbe|r of arg|
|000004f0| 75 6d 65 6e 74 73 2c 20 | 74 68 65 20 76 61 6c 75 |uments, |the valu|
|00000500| 65 20 72 65 74 75 72 6e | 65 64 20 69 73 20 74 68 |e return|ed is th|
|00000510| 65 20 6e 65 67 61 74 69 | 76 65 20 6f 66 20 74 68 |e negati|ve of th|
|00000520| 65 0d 6e 75 6d 62 65 72 | 20 6f 66 20 66 6f 72 6d |e.number| of form|
|00000530| 61 6c 20 70 61 72 61 6d | 65 74 65 72 73 2e 0d 0d |al param|eters...|
|00000540| 45 72 72 6f 72 3a 20 20 | 20 20 31 30 36 20 20 20 |Error: | 106 |
|00000550| 20 20 70 20 6e 6f 74 20 | 70 72 6f 63 65 64 75 72 | p not |procedur|
|00000560| 65 0d 0d 53 65 65 20 61 | 6c 73 6f 3a 20 70 72 6f |e..See a|lso: pro|
|00000570| 63 28 29 0d 61 73 69 6e | 28 72 31 29 20 3a 20 72 |c().asin|(r1) : r|
|00000580| 32 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2 | |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005a0| 20 20 20 20 20 63 6f 6d | 70 75 74 65 20 61 72 63 | com|pute arc|
|000005b0| 20 73 69 6e 65 0d 0d 61 | 73 69 6e 28 72 31 29 20 | sine..a|sin(r1) |
|000005c0| 70 72 6f 64 75 63 65 73 | 20 74 68 65 20 61 72 63 |produces| the arc|
|000005d0| 20 73 69 6e 65 20 6f 66 | 20 72 31 20 69 6e 20 74 | sine of| r1 in t|
|000005e0| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 2d 70 69 2f |he range| of -pi/|
|000005f0| 32 20 74 6f 0d 70 69 2f | 32 2e 0d 0d 45 72 72 6f |2 to.pi/|2...Erro|
|00000600| 72 73 3a 20 20 20 31 30 | 32 20 20 20 20 20 72 31 |rs: 10|2 r1|
|00000610| 20 6e 6f 74 20 72 65 61 | 6c 0d 20 20 20 20 20 20 | not rea|l. |
|00000620| 20 20 20 20 32 30 35 20 | 20 20 20 20 7c 72 31 7c | 205 | |r1||
|00000630| 20 67 72 65 61 74 65 72 | 20 74 68 61 6e 20 31 0d | greater| than 1.|
|00000640| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 73 69 6e 28 29 |.See als|o: sin()|
|00000650| 0d 61 74 61 6e 28 72 31 | 2c 72 32 29 20 3a 20 72 |.atan(r1|,r2) : r|
|00000660| 33 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |3 | |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00000680| 6f 6d 70 75 74 65 20 61 | 72 63 20 74 61 6e 67 65 |ompute a|rc tange|
|00000690| 6e 74 0d 0d 61 74 61 6e | 28 72 31 2c 72 32 29 20 |nt..atan|(r1,r2) |
|000006a0| 70 72 6f 64 75 63 65 73 | 20 74 68 65 20 61 72 63 |produces| the arc|
|000006b0| 20 74 61 6e 67 65 6e 74 | 20 6f 66 20 72 31 20 2f | tangent| of r1 /|
|000006c0| 20 72 32 20 69 6e 20 74 | 68 65 20 72 61 6e 67 65 | r2 in t|he range|
|000006d0| 20 6f 66 0d 2d 70 69 2f | 32 20 74 6f 20 70 69 2f | of.-pi/|2 to pi/|
|000006e0| 32 20 77 69 74 68 20 74 | 68 65 20 73 69 67 6e 20 |2 with t|he sign |
|000006f0| 6f 66 20 72 31 2e 0d 0d | 44 65 66 61 75 6c 74 73 |of r1...|Defaults|
|00000700| 3a 20 72 32 20 20 20 20 | 20 20 31 2e 30 0d 0d 45 |: r2 | 1.0..E|
|00000710| 72 72 6f 72 3a 20 20 20 | 20 31 30 32 20 20 20 20 |rror: | 102 |
|00000720| 20 72 31 20 6f 72 20 72 | 32 20 6e 6f 74 20 72 65 | r1 or r|2 not re|
|00000730| 61 6c 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 74 61 |al..See |also: ta|
|00000740| 6e 28 29 0d 62 61 6c 28 | 63 31 2c 63 32 2c 63 33 |n().bal(|c1,c2,c3|
|00000750| 2c 73 2c 69 31 2c 69 32 | 29 20 3a 20 69 33 2c 20 |,s,i1,i2|) : i3, |
|00000760| 69 34 2c 20 2e 2e 2e 2c | 20 69 6e 6c 6f 63 61 74 |i4, ...,| inlocat|
|00000770| 65 20 62 61 6c 61 6e 63 | 65 64 20 63 68 61 72 61 |e balanc|ed chara|
|00000780| 63 74 65 72 73 0d 0d 62 | 61 6c 28 63 31 2c 63 32 |cters..b|al(c1,c2|
|00000790| 2c 63 33 2c 73 2c 69 31 | 2c 69 32 29 20 67 65 6e |,c3,s,i1|,i2) gen|
|000007a0| 65 72 61 74 65 73 20 74 | 68 65 20 73 65 71 75 65 |erates t|he seque|
|000007b0| 6e 63 65 20 6f 66 20 69 | 6e 74 65 67 65 72 20 70 |nce of i|nteger p|
|000007c0| 6f 73 69 74 69 6f 6e 73 | 0d 69 6e 20 73 20 70 72 |ositions|.in s pr|
|000007d0| 65 63 65 64 69 6e 67 20 | 61 20 63 68 61 72 61 63 |eceding |a charac|
|000007e0| 74 65 72 20 6f 66 20 63 | 31 20 69 6e 20 73 5b 69 |ter of c|1 in s[i|
|000007f0| 31 3a 69 32 5d 20 74 68 | 61 74 20 69 73 20 62 61 |1:i2] th|at is ba|
|00000800| 6c 61 6e 63 65 64 0d 77 | 69 74 68 20 72 65 73 70 |lanced.w|ith resp|
|00000810| 65 63 74 20 74 6f 20 63 | 68 61 72 61 63 74 65 72 |ect to c|haracter|
|00000820| 73 20 69 6e 20 63 32 20 | 61 6e 64 20 63 33 2c 20 |s in c2 |and c3, |
|00000830| 62 75 74 20 66 61 69 6c | 73 20 69 66 20 74 68 65 |but fail|s if the|
|00000840| 72 65 20 69 73 20 6e 6f | 0d 73 75 63 68 20 70 6f |re is no|.such po|
|00000850| 73 69 74 69 6f 6e 2e 0d | 0d 44 65 66 61 75 6c 74 |sition..|.Default|
|00000860| 73 3a 20 63 31 20 20 20 | 20 20 20 26 63 73 65 74 |s: c1 | &cset|
|00000870| 0d 20 20 20 20 20 20 20 | 20 20 20 63 32 20 20 20 |. | c2 |
|00000880| 20 20 20 27 28 27 0d 20 | 20 20 20 20 20 20 20 20 | '('. | |
|00000890| 20 63 33 20 20 20 20 20 | 20 27 29 27 0d 20 20 20 | c3 | ')'. |
|000008a0| 20 20 20 20 20 20 20 73 | 20 20 20 20 20 20 20 26 | s| &|
|000008b0| 73 75 62 6a 65 63 74 0d | 20 20 20 20 20 20 20 20 |subject.| |
|000008c0| 20 20 69 31 20 20 20 20 | 20 20 26 70 6f 73 20 69 | i1 | &pos i|
|000008d0| 66 20 73 20 69 73 20 64 | 65 66 61 75 6c 74 65 64 |f s is d|efaulted|
|000008e0| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 31 0d 20 20 |, otherw|ise 1. |
|000008f0| 20 20 20 20 20 20 20 20 | 69 32 20 20 20 20 20 20 | |i2 |
|00000900| 30 0d 0d 45 72 72 6f 72 | 73 3a 20 20 20 31 30 31 |0..Error|s: 101|
|00000910| 20 20 20 20 20 69 31 20 | 6f 72 20 69 32 20 6e 6f | i1 |or i2 no|
|00000920| 74 20 69 6e 74 65 67 65 | 72 0d 20 20 20 20 20 20 |t intege|r. |
|00000930| 20 20 20 20 31 30 33 20 | 20 20 20 20 73 20 6e 6f | 103 | s no|
|00000940| 74 20 73 74 72 69 6e 67 | 0d 20 20 20 20 20 20 20 |t string|. |
|00000950| 20 20 20 31 30 34 20 20 | 20 20 20 63 31 2c 20 63 | 104 | c1, c|
|00000960| 32 2c 20 6f 72 20 63 33 | 20 6e 6f 74 20 63 73 65 |2, or c3| not cse|
|00000970| 74 0d 0d 53 65 65 20 61 | 6c 73 6f 3a 20 66 69 6e |t..See a|lso: fin|
|00000980| 64 28 29 20 61 6e 64 20 | 75 70 74 6f 28 29 0d 63 |d() and |upto().c|
|00000990| 61 6c 6c 6f 75 74 28 73 | 31 2c 73 32 2c 78 31 2c |allout(s|1,s2,x1,|
|000009a0| 78 32 2c 2e 2e 2e 2c 78 | 6e 29 20 3a 20 78 6d 20 |x2,...,x|n) : xm |
|000009b0| 20 20 20 20 20 20 20 20 | 20 20 63 61 6c 6c 20 65 | | call e|
|000009c0| 78 74 65 72 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |xternal |function|
|000009d0| 0d 0d 63 61 6c 6c 6f 75 | 74 28 73 31 2c 73 32 2c |..callou|t(s1,s2,|
|000009e0| 78 31 2c 78 32 2c 2e 2e | 2e 2c 20 78 6e 29 20 63 |x1,x2,..|., xn) c|
|000009f0| 61 6c 6c 73 20 74 68 65 | 20 65 78 74 65 72 6e 61 |alls the| externa|
|00000a00| 6c 20 66 75 6e 63 74 69 | 6f 6e 20 6f 66 20 74 79 |l functi|on of ty|
|00000a10| 70 65 0d 73 31 20 61 6e | 64 20 6e 61 6d 65 20 73 |pe.s1 an|d name s|
|00000a20| 32 20 77 69 74 68 20 74 | 68 65 20 61 72 67 75 6d |2 with t|he argum|
|00000a30| 65 6e 74 73 20 78 31 2c | 20 78 32 2c 20 2e 2e 2e |ents x1,| x2, ...|
|00000a40| 2a 28 52 6f 2c 20 78 6e | 2e 20 54 68 65 20 6d 61 |*(Ro, xn|. The ma|
|00000a50| 78 2d 0d 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |x-.imum |number o|
|00000a60| 66 20 61 72 67 75 6d 65 | 6e 74 73 20 69 73 20 31 |f argume|nts is 1|
|00000a70| 36 2e 20 54 68 65 20 61 | 6c 6c 6f 77 61 62 6c 65 |6. The a|llowable|
|00000a80| 20 76 61 6c 75 65 73 20 | 6f 66 20 73 31 20 61 72 | values |of s1 ar|
|00000a90| 65 3a 0d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |e:.. | |
|00000aa0| 20 22 58 43 4d 44 22 20 | 20 20 20 48 79 70 65 72 | "XCMD" | Hyper|
|00000ab0| 63 61 72 64 20 58 43 4d | 44 0d 20 20 20 20 20 20 |card XCM|D. |
|00000ac0| 20 20 20 20 20 20 20 22 | 58 46 43 4e 22 20 20 20 | "|XFCN" |
|00000ad0| 20 48 79 70 65 72 63 61 | 72 64 20 58 46 43 4e 0d | Hyperca|rd XFCN.|
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 22 43 4f | | "CO|
|00000af0| 44 45 22 20 20 20 20 53 | 74 61 6e 64 2d 61 6c 6f |DE" S|tand-alo|
|00000b00| 6e 65 20 66 75 6e 63 74 | 69 6f 6e 0d 0d 0d 45 72 |ne funct|ion...Er|
|00000b10| 72 6f 72 3a 20 20 20 20 | 32 31 36 20 20 20 20 20 |ror: |216 |
|00000b20| 73 70 65 63 69 66 69 65 | 64 20 66 75 6e 63 74 69 |specifie|d functi|
|00000b30| 6f 6e 20 6e 6f 74 20 66 | 6f 75 6e 64 0d 20 20 20 |on not f|ound. |
|00000b40| 20 20 20 20 20 20 20 33 | 35 32 20 20 20 20 20 69 | 3|52 i|
|00000b50| 6e 61 64 65 71 75 61 74 | 65 20 73 70 61 63 65 20 |nadequat|e space |
|00000b60| 66 6f 72 20 58 43 4d 44 | 20 69 6e 74 65 72 66 61 |for XCMD| interfa|
|00000b70| 63 65 0d 20 20 20 20 20 | 20 20 20 20 20 33 35 33 |ce. | 353|
|00000b80| 20 20 20 20 20 63 6f 75 | 6c 64 20 6e 6f 74 20 58 | cou|ld not X|
|00000b90| 43 4d 44 2f 58 46 43 4e | 0d 63 65 6e 74 65 72 28 |CMD/XFCN|.center(|
|00000ba0| 73 31 2c 69 2c 73 32 29 | 20 3a 20 73 33 20 20 20 |s1,i,s2)| : s3 |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 65 6e | | cen|
|00000bd0| 74 65 72 20 73 74 72 69 | 6e 67 0d 0d 63 65 6e 74 |ter stri|ng..cent|
|00000be0| 65 72 28 73 31 2c 69 2c | 73 32 29 20 70 72 6f 64 |er(s1,i,|s2) prod|
|00000bf0| 75 63 65 73 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |uces a s|tring of|
|00000c00| 20 73 69 7a 65 20 69 20 | 69 6e 20 77 68 69 63 68 | size i |in which|
|00000c10| 20 73 31 20 69 73 20 63 | 65 6e 2d 0d 74 65 72 65 | s1 is c|en-.tere|
|00000c20| 64 2c 20 77 69 74 68 20 | 73 32 20 75 73 65 64 20 |d, with |s2 used |
|00000c30| 66 6f 72 20 70 61 64 64 | 69 6e 67 20 61 74 20 6c |for padd|ing at l|
|00000c40| 65 66 74 20 61 6e 64 20 | 72 69 67 68 74 20 61 73 |eft and |right as|
|00000c50| 20 6e 65 63 65 73 73 61 | 72 79 2e 0d 0d 44 65 66 | necessa|ry...Def|
|00000c60| 61 75 6c 74 73 3a 20 69 | 20 20 20 20 20 20 20 31 |aults: i| 1|
|00000c70| 0d 20 20 20 20 20 20 20 | 20 20 20 73 32 20 20 20 |. | s2 |
|00000c80| 20 20 20 22 20 22 0d 0d | 45 72 72 6f 72 73 3a 20 | " "..|Errors: |
|00000c90| 20 20 31 30 31 20 20 20 | 20 20 69 20 6e 6f 74 20 | 101 | i not |
|00000ca0| 69 6e 74 65 67 65 72 0d | 20 20 20 20 20 20 20 20 |integer.| |
|00000cb0| 20 20 31 30 33 20 20 20 | 20 20 73 31 20 6f 72 20 | 103 | s1 or |
|00000cc0| 73 32 20 6e 6f 74 20 73 | 74 72 69 6e 67 0d 20 20 |s2 not s|tring. |
|00000cd0| 20 20 20 20 20 20 20 20 | 32 30 35 20 20 20 20 20 | |205 |
|00000ce0| 69 20 3c 20 30 0d 20 20 | 20 20 20 20 20 20 20 20 |i < 0. | |
|00000cf0| 33 30 36 20 20 20 20 20 | 69 6e 61 64 65 71 75 61 |306 |inadequa|
|00000d00| 74 65 20 73 70 61 63 65 | 20 69 6e 20 73 74 72 69 |te space| in stri|
|00000d10| 6e 67 20 72 65 67 69 6f | 6e 0d 0d 53 65 65 20 61 |ng regio|n..See a|
|00000d20| 6c 73 6f 3a 20 6c 65 66 | 74 28 29 20 61 6e 64 20 |lso: lef|t() and |
|00000d30| 72 69 67 68 74 28 29 0d | 63 68 61 6e 67 65 66 28 |right().|changef(|
|00000d40| 73 29 20 3a 20 73 20 20 | 20 20 20 20 20 20 20 20 |s) : s | |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 68 61 6e | | chan|
|00000d60| 67 65 20 63 75 72 72 65 | 6e 74 20 77 6f 72 6b 69 |ge curre|nt worki|
|00000d70| 6e 67 20 66 6f 6c 64 65 | 72 0d 0d 63 68 61 6e 67 |ng folde|r..chang|
|00000d80| 65 66 28 73 29 20 63 68 | 61 6e 67 65 73 20 74 68 |ef(s) ch|anges th|
|00000d90| 65 20 63 75 72 72 65 6e | 74 20 77 6f 72 6b 69 6e |e curren|t workin|
|00000da0| 67 20 66 6f 6c 64 65 72 | 20 74 6f 20 73 2e 20 49 |g folder| to s. I|
|00000db0| 74 20 66 61 69 6c 73 20 | 69 66 20 73 0d 69 73 20 |t fails |if s.is |
|00000dc0| 6e 6f 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |not the |name of |
|00000dd0| 61 20 66 6f 6c 64 65 72 | 2e 0d 0d 45 72 72 6f 72 |a folder|...Error|
|00000de0| 3a 20 20 20 20 33 30 36 | 20 20 20 20 20 69 6e 61 |: 306| ina|
|00000df0| 64 65 71 75 61 74 65 20 | 73 70 61 63 65 20 69 6e |dequate |space in|
|00000e00| 20 73 74 72 69 6e 67 20 | 72 65 67 69 6f 6e 0d 63 | string |region.c|
|00000e10| 68 61 72 28 69 29 20 3a | 20 73 20 20 20 20 20 20 |har(i) :| s |
|00000e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00000e40| 72 6f 64 75 63 65 20 63 | 68 61 72 61 63 74 65 72 |roduce c|haracter|
|00000e50| 0d 0d 63 68 61 72 28 69 | 29 20 70 72 6f 64 75 63 |..char(i|) produc|
|00000e60| 65 73 20 61 20 6f 6e 65 | 2d 63 68 61 72 61 63 74 |es a one|-charact|
|00000e70| 65 72 20 73 74 72 69 6e | 67 20 77 68 6f 73 65 20 |er strin|g whose |
|00000e80| 69 6e 74 65 72 6e 61 6c | 20 72 65 70 72 65 73 65 |internal| represe|
|00000e90| 6e 2d 0d 74 61 74 69 6f | 6e 20 69 73 20 69 2e 0d |n-.tatio|n is i..|
|00000ea0| 0d 45 72 72 6f 72 73 3a | 20 20 20 31 30 31 20 20 |.Errors:| 101 |
|00000eb0| 20 20 20 69 20 6e 6f 74 | 20 69 6e 74 65 67 65 72 | i not| integer|
|00000ec0| 0d 20 20 20 20 20 20 20 | 20 20 20 32 30 35 20 20 |. | 205 |
|00000ed0| 20 20 20 69 20 6e 6f 74 | 20 62 65 74 77 65 65 6e | i not| between|
|00000ee0| 20 30 20 61 6e 64 20 32 | 35 35 2c 20 69 6e 63 6c | 0 and 2|55, incl|
|00000ef0| 75 73 69 76 65 0d 20 20 | 20 20 20 20 20 20 20 20 |usive. | |
|00000f00| 33 30 36 20 20 20 20 20 | 69 6e 61 64 65 71 75 61 |306 |inadequa|
|00000f10| 74 65 20 73 70 61 63 65 | 20 69 6e 20 73 74 72 69 |te space| in stri|
|00000f20| 6e 67 20 72 65 67 69 6f | 6e 0d 0d 53 65 65 20 61 |ng regio|n..See a|
|00000f30| 6c 73 6f 3a 20 6f 72 64 | 28 29 0d 63 6c 6f 73 65 |lso: ord|().close|
|00000f40| 28 66 29 20 3a 20 66 20 | 20 20 20 20 20 20 20 20 |(f) : f | |
|00000f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f70| 20 20 63 6c 6f 73 65 20 | 66 69 6c 65 0d 0d 63 6c | close |file..cl|
|00000f80| 6f 73 65 28 66 29 20 63 | 6c 6f 73 65 73 20 66 2e |ose(f) c|loses f.|
|00000f90| 0d 0d 45 72 72 6f 72 3a | 20 20 20 20 31 30 35 20 |..Error:| 105 |
|00000fa0| 20 20 20 20 66 20 6e 6f | 74 20 66 69 6c 65 0d 0d | f no|t file..|
|00000fb0| 53 65 65 20 61 6c 73 6f | 3a 20 6f 70 65 6e 28 29 |See also|: open()|
|00000fc0| 0d 63 6f 6c 6c 65 63 74 | 28 69 31 2c 69 32 29 20 |.collect|(i1,i2) |
|00000fd0| 3a 20 6e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: n | |
|00000fe0| 20 20 20 20 20 20 20 20 | 70 65 72 66 6f 72 6d 20 | |perform |
|00000ff0| 67 61 72 62 61 67 65 20 | 63 6f 6c 6c 65 63 74 69 |garbage |collecti|
|00001000| 6f 6e 0d 0d 63 6f 6c 6c | 65 63 74 28 69 31 2c 69 |on..coll|ect(i1,i|
|00001010| 32 29 20 63 61 75 73 65 | 73 20 61 20 67 61 72 62 |2) cause|s a garb|
|00001020| 61 67 65 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 69 |age coll|ection i|
|00001030| 6e 20 72 65 67 69 6f 6e | 20 69 31 2c 20 61 73 73 |n region| i1, ass|
|00001040| 75 72 69 6e 67 0d 61 74 | 20 6c 65 61 73 74 20 69 |uring.at| least i|
|00001050| 32 20 62 79 74 65 73 20 | 6f 66 20 73 74 6f 72 61 |2 bytes |of stora|
|00001060| 67 65 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |ge are a|vailable|
|00001070| 20 69 6e 20 74 68 61 74 | 20 72 65 67 69 6f 6e 2c | in that| region,|
|00001080| 20 62 75 74 0d 66 61 69 | 6c 73 20 69 66 20 74 68 | but.fai|ls if th|
|00001090| 65 20 72 65 71 75 65 73 | 74 65 64 20 73 70 61 63 |e reques|ted spac|
|000010a0| 65 20 69 73 20 6e 6f 74 | 20 61 76 61 69 6c 61 62 |e is not| availab|
|000010b0| 6c 65 2e 20 20 54 68 65 | 20 72 65 67 69 6f 6e 73 |le. The| regions|
|000010c0| 20 61 72 65 0d 69 64 65 | 6e 74 69 66 69 65 64 20 | are.ide|ntified |
|000010d0| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0d 0d 20 20 20 |as follo|ws:.. |
|000010e0| 20 20 20 20 20 69 31 20 | 20 20 72 65 67 69 6f 6e | i1 | region|
|000010f0| 0d 20 20 20 20 20 20 20 | 20 31 20 20 20 20 73 74 |. | 1 st|
|00001100| 61 74 69 63 0d 20 20 20 | 20 20 20 20 20 32 20 20 |atic. | 2 |
|00001110| 20 20 73 74 72 69 6e 67 | 0d 20 20 20 20 20 20 20 | string|. |
|00001120| 20 33 20 20 20 20 62 6c | 6f 63 6b 0d 0d 49 66 20 | 3 bl|ock..If |
|00001130| 69 31 20 69 73 20 30 2c | 20 61 20 63 6f 6c 6c 65 |i1 is 0,| a colle|
|00001140| 63 74 69 6f 6e 20 69 73 | 20 64 6f 6e 65 2c 20 62 |ction is| done, b|
|00001150| 75 74 20 6e 6f 20 72 65 | 67 69 6f 6e 20 69 73 20 |ut no re|gion is |
|00001160| 69 64 65 6e 74 69 66 69 | 65 64 20 61 6e 64 0d 69 |identifi|ed and.i|
|00001170| 32 20 68 61 73 20 6e 6f | 20 65 66 66 65 63 74 2e |2 has no| effect.|
|00001180| 0d 0d 44 65 66 61 75 6c | 74 73 3a 20 69 31 20 20 |..Defaul|ts: i1 |
|00001190| 20 20 20 20 30 0d 20 20 | 20 20 20 20 20 20 20 20 | 0. | |
|000011a0| 69 32 20 20 20 20 20 20 | 30 0d 0d 45 72 72 6f 72 |i2 |0..Error|
|000011b0| 73 3a 20 20 20 31 30 31 | 20 20 20 20 20 69 31 20 |s: 101| i1 |
|000011c0| 6f 72 20 69 32 20 6e 6f | 74 20 69 6e 74 65 67 65 |or i2 no|t intege|
|000011d0| 72 0d 20 20 20 20 20 20 | 20 20 20 20 32 30 35 20 |r. | 205 |
|000011e0| 20 20 20 20 69 31 20 6e | 6f 74 20 62 65 74 77 65 | i1 n|ot betwe|
|000011f0| 65 6e 20 30 20 61 6e 64 | 20 33 20 69 6e 63 6c 75 |en 0 and| 3 inclu|
|00001200| 73 69 76 65 20 6f 72 20 | 69 32 20 3c 20 30 2e 0d |sive or |i2 < 0..|
|00001210| 63 6f 70 79 28 78 31 29 | 20 3a 20 78 32 20 20 20 |copy(x1)| : x2 |
|00001220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 20 20 20 20 20 63 | 6f 70 79 20 76 61 6c 75 | c|opy valu|
|00001250| 65 0d 0d 63 6f 70 79 28 | 78 31 29 20 70 72 6f 64 |e..copy(|x1) prod|
|00001260| 75 63 65 73 20 61 20 63 | 6f 70 79 20 6f 66 20 78 |uces a c|opy of x|
|00001270| 31 20 69 66 20 78 31 20 | 69 73 20 61 20 73 74 72 |1 if x1 |is a str|
|00001280| 75 63 74 75 72 65 3b 20 | 6f 74 68 65 72 77 69 73 |ucture; |otherwis|
|00001290| 65 20 69 74 0d 70 72 6f | 64 75 63 65 73 20 78 31 |e it.pro|duces x1|
|000012a0| 2e 0d 0d 45 72 72 6f 72 | 3a 20 20 20 20 33 30 37 |...Error|: 307|
|000012b0| 20 20 20 20 20 69 6e 61 | 64 65 71 75 61 74 65 20 | ina|dequate |
|000012c0| 73 70 61 63 65 20 69 6e | 20 62 6c 6f 63 6b 20 72 |space in| block r|
|000012d0| 65 67 69 6f 6e 0d 63 6f | 73 28 72 31 29 20 3a 20 |egion.co|s(r1) : |
|000012e0| 72 32 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r2 | |
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001300| 20 20 20 20 20 20 20 20 | 20 63 6f 6d 70 75 74 65 | | compute|
|00001310| 20 63 6f 73 69 6e 65 0d | 0d 63 6f 73 28 72 31 29 | cosine.|.cos(r1)|
|00001320| 20 70 72 6f 64 75 63 65 | 73 20 74 68 65 20 63 6f | produce|s the co|
|00001330| 73 69 6e 65 20 6f 66 20 | 72 31 20 69 6e 20 72 61 |sine of |r1 in ra|
|00001340| 64 69 61 6e 73 2e 0d 0d | 45 72 72 6f 72 3a 20 20 |dians...|Error: |
|00001350| 20 20 31 30 32 20 20 20 | 20 20 72 31 20 6e 6f 74 | 102 | r1 not|
|00001360| 20 72 65 61 6c 0d 0d 53 | 65 65 20 61 6c 73 6f 3a | real..S|ee also:|
|00001370| 20 63 6f 73 28 29 0d 63 | 73 65 74 28 78 29 20 3a | cos().c|set(x) :|
|00001380| 20 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | c | |
|00001390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013a0| 20 20 20 20 20 20 20 20 | 20 63 6f 6e 76 65 72 74 | | convert|
|000013b0| 20 74 6f 20 63 73 65 74 | 0d 0d 63 73 65 74 28 78 | to cset|..cset(x|
|000013c0| 29 20 70 72 6f 64 75 63 | 65 73 20 61 20 63 73 65 |) produc|es a cse|
|000013d0| 74 20 72 65 73 75 6c 74 | 69 6e 67 20 66 72 6f 6d |t result|ing from|
|000013e0| 20 63 6f 6e 76 65 72 74 | 69 6e 67 20 78 2c 20 62 | convert|ing x, b|
|000013f0| 75 74 20 66 61 69 6c 73 | 20 69 66 0d 74 68 65 20 |ut fails| if.the |
|00001400| 63 6f 6e 76 65 72 73 69 | 6f 6e 20 69 73 20 6e 6f |conversi|on is no|
|00001410| 74 20 70 6f 73 73 69 62 | 6c 65 2e 0d 0d 45 72 72 |t possib|le...Err|
|00001420| 6f 72 3a 20 20 20 20 33 | 30 37 20 20 20 20 20 69 |or: 3|07 i|
|00001430| 6e 61 64 65 71 75 61 74 | 65 20 73 70 61 63 65 20 |nadequat|e space |
|00001440| 69 6e 20 62 6c 6f 63 6b | 20 72 65 67 69 6f 6e 0d |in block| region.|
|00001450| 20 20 20 20 20 20 20 20 | 20 20 2e 65 74 0d 20 20 | | .et. |
|00001460| 20 20 20 20 20 20 20 20 | 2e 65 65 0d 20 20 20 20 | |.ee. |
|00001470| 20 20 20 20 20 20 2e 73 | 65 0d 20 20 20 20 20 20 | .s|e. |
|00001480| 20 20 20 20 2e 63 74 20 | 22 49 6e 70 75 74 2f 4f | .ct |"Input/O|
|00001490| 75 74 70 75 74 22 0d 20 | 20 20 20 20 20 20 20 20 |utput". | |
|000014a0| 20 2e 69 74 20 22 63 75 | 72 72 65 6e 74 66 28 29 | .it "cu|rrentf()|
|000014b0| 22 0d 20 20 20 20 20 20 | 20 20 20 20 2e 73 74 0d |". | .st.|
|000014c0| 63 75 72 72 65 6e 74 66 | 28 29 20 3a 20 73 20 20 |currentf|() : s |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 20 20 20 20 20 20 67 | 65 74 20 63 75 72 72 65 | g|et curre|
|000014f0| 6e 74 20 77 6f 72 6b 69 | 6e 67 20 66 6f 6c 64 65 |nt worki|ng folde|
|00001500| 72 0d 0d 20 20 20 20 20 | 20 20 20 20 20 63 75 72 |r.. | cur|
|00001510| 72 65 6e 74 66 28 29 20 | 72 65 74 75 72 6e 73 20 |rentf() |returns |
|00001520| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00001530| 63 75 72 72 65 6e 74 20 | 77 6f 72 6b 69 6e 67 0d |current |working.|
|00001540| 20 20 20 20 20 20 20 20 | 20 20 66 6f 6c 64 65 72 | | folder|
|00001550| 20 61 73 20 61 20 66 75 | 6c 6c 20 70 61 74 68 20 | as a fu|ll path |
|00001560| 6e 61 6d 65 20 28 77 69 | 74 68 20 61 20 73 75 66 |name (wi|th a suf|
|00001570| 66 69 78 20 22 3a 22 29 | 2e 0d 0d 45 72 72 6f 72 |fix ":")|...Error|
|00001580| 3a 20 20 20 20 32 31 34 | 20 20 20 20 20 69 6e 70 |: 214| inp|
|00001590| 75 74 2f 6f 75 74 70 75 | 74 20 65 72 72 6f 72 0d |ut/outpu|t error.|
|000015a0| 64 65 6c 61 79 28 69 29 | 20 3a 20 69 20 20 20 20 |delay(i)| : i |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 65 6c 61 | | dela|
|000015e0| 79 0d 0d 64 65 6c 61 79 | 28 69 29 20 64 65 6c 61 |y..delay|(i) dela|
|000015f0| 79 73 20 70 72 6f 67 72 | 61 6d 20 65 78 65 63 75 |ys progr|am execu|
|00001600| 74 69 6f 6e 20 66 6f 72 | 20 69 20 74 69 63 6b 73 |tion for| i ticks|
|00001610| 20 6f 66 20 31 2f 36 30 | 74 68 20 6f 66 20 61 0d | of 1/60|th of a.|
|00001620| 73 65 63 6f 6e 64 2e 0d | 0d 44 65 66 61 75 6c 74 |second..|.Default|
|00001630| 3a 20 20 69 20 20 20 20 | 20 20 20 30 0d 0d 45 72 |: i | 0..Er|
|00001640| 72 6f 72 3a 20 20 20 20 | 31 30 31 20 20 20 20 20 |ror: |101 |
|00001650| 69 20 6e 6f 74 20 69 6e | 74 65 67 65 72 0d 64 65 |i not in|teger.de|
|00001660| 6c 65 74 65 28 58 2c 78 | 29 20 3a 20 58 20 20 20 |lete(X,x|) : X |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001690| 20 64 65 6c 65 74 65 20 | 65 6c 65 6d 65 6e 74 0d | delete |element.|
|000016a0| 0d 49 66 20 58 20 69 73 | 20 61 20 73 65 74 2c 20 |.If X is| a set, |
|000016b0| 64 65 6c 65 74 65 28 58 | 2c 78 29 20 64 65 6c 65 |delete(X|,x) dele|
|000016c0| 74 65 73 20 78 20 66 72 | 6f 6d 20 58 2e 20 20 49 |tes x fr|om X. I|
|000016d0| 66 20 58 20 69 73 20 61 | 20 74 61 62 6c 65 2c 0d |f X is a| table,.|
|000016e0| 64 65 6c 65 74 65 28 58 | 2c 78 29 20 64 65 6c 65 |delete(X|,x) dele|
|000016f0| 74 65 73 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 20 |tes the |element |
|00001700| 66 6f 72 20 6b 65 79 20 | 78 20 66 72 6f 6d 20 58 |for key |x from X|
|00001710| 2e 20 20 64 65 6c 65 74 | 65 28 58 2c 78 29 0d 70 |. delet|e(X,x).p|
|00001720| 72 6f 64 75 63 65 73 20 | 58 2e 0d 0d 45 72 72 6f |roduces |X...Erro|
|00001730| 72 3a 20 20 20 20 31 32 | 32 20 20 20 20 20 58 20 |r: 12|2 X |
|00001740| 6e 6f 74 20 73 65 74 20 | 6f 72 20 74 61 62 6c 65 |not set |or table|
|00001750| 2e 0d 0d 53 65 65 20 61 | 6c 73 6f 3a 20 69 6e 73 |...See a|lso: ins|
|00001760| 65 72 74 28 29 20 61 6e | 64 20 6d 65 6d 62 65 72 |ert() an|d member|
|00001770| 28 29 0d 64 65 74 61 62 | 28 73 31 2c 69 31 2c 69 |().detab|(s1,i1,i|
|00001780| 32 2c 20 2e 2e 2e 2c 20 | 69 6e 29 20 3a 20 73 32 |2, ..., |in) : s2|
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017a0| 20 20 20 20 20 20 20 20 | 20 72 65 6d 6f 76 65 20 | | remove |
|000017b0| 74 61 62 73 0d 0d 64 65 | 74 61 62 28 73 31 2c 69 |tabs..de|tab(s1,i|
|000017c0| 31 2c 69 32 2c 20 2e 2e | 2e 2c 20 69 6e 29 20 70 |1,i2, ..|., in) p|
|000017d0| 72 6f 64 75 63 65 73 20 | 61 20 73 74 72 69 6e 67 |roduces |a string|
|000017e0| 20 62 61 73 65 64 20 6f | 6e 20 73 31 20 69 6e 20 | based o|n s1 in |
|000017f0| 77 68 69 63 68 0d 65 61 | 63 68 20 74 61 62 20 63 |which.ea|ch tab c|
|00001800| 68 61 72 61 63 74 65 72 | 20 69 73 20 72 65 70 6c |haracter| is repl|
|00001810| 61 63 65 64 20 62 79 20 | 6f 6e 65 20 6f 72 20 6d |aced by |one or m|
|00001820| 6f 72 65 20 62 6c 61 6e | 6b 73 2e 20 54 61 62 20 |ore blan|ks. Tab |
|00001830| 73 74 6f 70 73 0d 61 72 | 65 20 61 74 20 69 31 2c |stops.ar|e at i1,|
|00001840| 20 69 32 2c 20 2e 2e 2e | 2c 20 69 6e 20 77 69 74 | i2, ...|, in wit|
|00001850| 68 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 73 74 6f |h additi|onal sto|
|00001860| 70 73 20 6f 62 74 61 69 | 6e 65 64 20 62 79 20 72 |ps obtai|ned by r|
|00001870| 65 70 65 61 74 2d 0d 69 | 6e 67 20 74 68 65 20 6c |epeat-.i|ng the l|
|00001880| 61 73 74 20 69 6e 74 65 | 72 76 61 6c 2e 0d 0d 44 |ast inte|rval...D|
|00001890| 65 66 61 75 6c 74 3a 20 | 20 69 31 20 20 20 20 20 |efault: | i1 |
|000018a0| 20 39 0d 0d 45 72 72 6f | 72 73 3a 20 20 20 31 30 | 9..Erro|rs: 10|
|000018b0| 31 20 20 20 20 20 69 31 | 2c 20 69 32 2c 20 2e 2e |1 i1|, i2, ..|
|000018c0| 2e 2c 20 69 6e 20 6e 6f | 74 20 69 6e 74 65 67 65 |., in no|t intege|
|000018d0| 72 0d 20 20 20 20 20 20 | 20 20 20 20 31 30 33 20 |r. | 103 |
|000018e0| 20 20 20 20 73 31 20 6e | 6f 74 20 73 74 72 69 6e | s1 n|ot strin|
|000018f0| 67 0d 20 20 20 20 20 20 | 20 20 20 20 32 31 30 20 |g. | 210 |
|00001900| 20 20 20 20 69 31 2c 20 | 69 32 2c 20 2e 2e 2e 2c | i1, |i2, ...,|
|00001910| 20 69 6e 20 6e 6f 74 20 | 70 6f 73 69 74 69 76 65 | in not |positive|
|00001920| 20 6f 72 20 69 6e 20 69 | 6e 63 72 65 61 73 69 6e | or in i|ncreasin|
|00001930| 67 20 73 65 71 75 65 6e | 63 65 0d 20 20 20 20 20 |g sequen|ce. |
|00001940| 20 20 20 20 20 33 30 36 | 20 20 20 20 20 69 6e 61 | 306| ina|
|00001950| 64 65 71 75 61 74 65 20 | 73 70 61 63 65 20 69 6e |dequate |space in|
|00001960| 20 73 74 72 69 6e 67 20 | 72 65 67 69 6f 6e 0d 0d | string |region..|
|00001970| 53 65 65 20 61 6c 73 6f | 3a 20 65 6e 74 61 62 28 |See also|: entab(|
|00001980| 29 0d 64 69 73 70 6c 61 | 79 28 69 2c 66 29 20 3a |).displa|y(i,f) :|
|00001990| 20 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | n | |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019b0| 20 20 64 69 73 70 6c 61 | 79 20 76 61 72 69 61 62 | displa|y variab|
|000019c0| 6c 65 73 0d 0d 64 69 73 | 70 6c 61 79 28 69 2c 66 |les..dis|play(i,f|
|000019d0| 29 20 77 72 69 74 65 73 | 20 74 68 65 20 69 6d 61 |) writes| the ima|
|000019e0| 67 65 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |ge of th|e curren|
|000019f0| 74 20 63 6f 2d 65 78 70 | 72 65 73 73 69 6f 6e 20 |t co-exp|ression |
|00001a00| 61 6e 64 0d 74 68 65 20 | 76 61 6c 75 65 73 20 6f |and.the |values o|
|00001a10| 66 20 74 68 65 20 6c 6f | 63 61 6c 20 76 61 72 69 |f the lo|cal vari|
|00001a20| 61 62 6c 65 73 20 69 6e | 20 74 68 65 20 63 75 72 |ables in| the cur|
|00001a30| 72 65 6e 74 20 70 72 6f | 63 65 64 75 72 65 20 63 |rent pro|cedure c|
|00001a40| 61 6c 6c 2e 0d 49 66 20 | 69 20 69 73 20 67 72 65 |all..If |i is gre|
|00001a50| 61 74 65 72 20 74 68 61 | 6e 20 30 2c 20 74 68 65 |ater tha|n 0, the|
|00001a60| 20 6c 6f 63 61 6c 20 76 | 61 72 69 61 62 6c 65 73 | local v|ariables|
|00001a70| 20 69 6e 20 74 68 65 20 | 69 20 70 72 65 63 65 64 | in the |i preced|
|00001a80| 69 6e 67 0d 70 72 6f 63 | 65 64 75 72 65 20 63 61 |ing.proc|edure ca|
|00001a90| 6c 6c 73 20 61 72 65 20 | 64 69 73 70 6c 61 79 65 |lls are |displaye|
|00001aa0| 64 20 61 73 20 77 65 6c | 6c 2e 20 41 66 74 65 72 |d as wel|l. After|
|00001ab0| 20 61 6c 6c 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 | all loc|al varia|
|00001ac0| 62 6c 65 73 0d 61 72 65 | 20 64 69 73 70 6c 61 79 |bles.are| display|
|00001ad0| 65 64 2c 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |ed, the |values o|
|00001ae0| 66 20 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |f global| variabl|
|00001af0| 65 73 20 61 72 65 20 64 | 69 73 70 6c 61 79 65 64 |es are d|isplayed|
|00001b00| 2e 20 4f 75 74 2d 0d 70 | 75 74 20 69 73 20 77 72 |. Out-.p|ut is wr|
|00001b10| 69 74 74 65 6e 20 74 6f | 20 66 2e 0d 0d 44 65 66 |itten to| f...Def|
|00001b20| 61 75 6c 74 73 3a 20 69 | 20 20 20 20 20 20 20 26 |aults: i| &|
|00001b30| 6c 65 76 65 6c 0d 20 20 | 20 20 20 20 20 20 20 20 |level. | |
|00001b40| 66 20 20 20 20 20 20 20 | 26 65 72 72 6f 75 74 0d |f |&errout.|
|00001b50| 0d 45 72 72 6f 72 73 3a | 20 20 20 31 30 31 20 20 |.Errors:| 101 |
|00001b60| 20 20 20 69 20 6e 6f 74 | 20 69 6e 74 65 67 65 72 | i not| integer|
|00001b70| 0d 20 20 20 20 20 20 20 | 20 20 20 31 30 35 20 20 |. | 105 |
|00001b80| 20 20 20 66 20 6e 6f 74 | 20 66 69 6c 65 0d 20 20 | f not| file. |
|00001b90| 20 20 20 20 20 20 20 20 | 32 30 35 20 20 20 20 20 | |205 |
|00001ba0| 69 20 3c 20 30 0d 20 20 | 20 20 20 20 20 20 20 20 |i < 0. | |
|00001bb0| 32 31 33 20 20 20 20 20 | 66 20 6e 6f 74 20 6f 70 |213 |f not op|
|00001bc0| 65 6e 20 66 6f 72 20 77 | 72 69 74 69 6e 67 0d 64 |en for w|riting.d|
|00001bd0| 74 6f 72 28 72 31 29 20 | 3a 20 72 32 20 20 20 20 |tor(r1) |: r2 |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bf0| 20 20 20 20 20 20 63 6f | 6e 76 65 72 74 20 64 65 | co|nvert de|
|00001c00| 67 72 65 65 73 20 74 6f | 20 72 61 64 69 61 6e 73 |grees to| radians|
|00001c10| 0d 0d 64 74 6f 72 28 72 | 31 29 20 70 72 6f 64 75 |..dtor(r|1) produ|
|00001c20| 63 65 73 20 74 68 65 20 | 72 61 64 69 61 6e 20 65 |ces the |radian e|
|00001c30| 71 75 69 76 61 6c 65 6e | 74 20 6f 66 20 72 31 20 |quivalen|t of r1 |
|00001c40| 67 69 76 65 6e 20 69 6e | 20 64 65 67 72 65 65 73 |given in| degrees|
|00001c50| 2e 0d 0d 45 72 72 6f 72 | 3a 20 20 20 20 31 30 32 |...Error|: 102|
|00001c60| 20 20 20 20 20 72 31 20 | 6e 6f 74 20 72 65 61 6c | r1 |not real|
|00001c70| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 72 74 6f 64 |..See al|so: rtod|
|00001c80| 28 29 0d 65 6e 74 61 62 | 28 73 31 2c 69 31 2c 69 |().entab|(s1,i1,i|
|00001c90| 32 2c 20 2e 2e 2e 2c 20 | 69 6e 29 20 3a 20 73 32 |2, ..., |in) : s2|
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 69 6e 73 65 72 74 20 | | insert |
|00001cc0| 74 61 62 73 0d 0d 65 6e | 74 61 62 28 73 31 2c 69 |tabs..en|tab(s1,i|
|00001cd0| 31 2c 69 32 2c 20 2e 2e | 2e 2c 20 69 6e 29 20 70 |1,i2, ..|., in) p|
|00001ce0| 72 6f 64 75 63 65 73 20 | 61 20 73 74 72 69 6e 67 |roduces |a string|
|00001cf0| 20 62 61 73 65 64 20 6f | 6e 20 73 31 20 69 6e 20 | based o|n s1 in |
|00001d00| 77 68 69 63 68 0d 72 75 | 6e 73 20 6f 66 20 62 6c |which.ru|ns of bl|
|00001d10| 61 6e 6b 73 20 61 72 65 | 20 72 65 70 6c 61 63 65 |anks are| replace|
|00001d20| 64 20 62 79 20 74 61 62 | 73 2e 20 54 61 62 20 73 |d by tab|s. Tab s|
|00001d30| 74 6f 70 73 20 61 72 65 | 20 61 74 20 69 31 2c 20 |tops are| at i1, |
|00001d40| 69 32 2c 0d 69 6e 74 65 | 72 76 61 6c 2e 0d 0d 44 |i2,.inte|rval...D|
|00001d50| 65 66 61 75 6c 74 3a 20 | 20 69 31 20 20 20 20 20 |efault: | i1 |
|00001d60| 20 39 0d 0d 45 72 72 6f | 72 73 3a 20 20 20 31 30 | 9..Erro|rs: 10|
|00001d70| 31 20 20 20 20 20 69 31 | 2c 20 69 32 2c 20 2e 2e |1 i1|, i2, ..|
|00001d80| 2e 2c 20 69 6e 20 6e 6f | 74 20 69 6e 74 65 67 65 |., in no|t intege|
|00001d90| 72 0d 20 20 20 20 20 20 | 20 20 20 20 31 30 33 20 |r. | 103 |
|00001da0| 20 20 20 20 73 31 20 6e | 6f 74 20 73 74 72 69 6e | s1 n|ot strin|
|00001db0| 67 0d 20 20 20 20 20 20 | 20 20 20 20 32 31 30 20 |g. | 210 |
|00001dc0| 20 20 20 20 69 31 2c 20 | 69 32 2c 20 2e 2e 2e 2c | i1, |i2, ...,|
|00001dd0| 20 69 6e 20 6e 6f 74 20 | 70 6f 73 69 74 69 76 65 | in not |positive|
|00001de0| 20 6f 72 20 69 6e 20 69 | 6e 63 72 65 61 73 69 6e | or in i|ncreasin|
|00001df0| 67 20 73 65 71 75 65 6e | 63 65 0d 20 20 20 20 20 |g sequen|ce. |
|00001e00| 20 20 20 20 20 33 30 36 | 20 20 20 20 20 69 6e 61 | 306| ina|
|00001e10| 64 65 71 75 61 74 65 20 | 73 70 61 63 65 20 69 6e |dequate |space in|
|00001e20| 20 73 74 72 69 6e 67 20 | 72 65 67 69 6f 6e 0d 0d | string |region..|
|00001e30| 53 65 65 20 61 6c 73 6f | 3a 20 64 65 74 61 62 28 |See also|: detab(|
|00001e40| 29 0d 65 72 72 6f 72 63 | 6c 65 61 72 28 29 20 3a |).errorc|lear() :|
|00001e50| 20 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | n | |
|00001e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6c 65 | | cle|
|00001e70| 61 72 20 65 72 72 6f 72 | 20 69 6e 64 69 63 61 74 |ar error| indicat|
|00001e80| 69 6f 6e 0d 0d 65 72 72 | 6f 72 63 6c 65 61 72 28 |ion..err|orclear(|
|00001e90| 29 20 63 6c 65 61 72 73 | 20 74 68 65 20 69 6e 64 |) clears| the ind|
|00001ea0| 69 63 61 74 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |ications| of the |
|00001eb0| 6c 61 73 74 20 65 72 72 | 6f 72 2e 0d 0d 53 65 65 |last err|or...See|
|00001ec0| 20 61 6c 73 6f 3a 20 26 | 65 72 72 6f 72 0d 65 78 | also: &|error.ex|
|00001ed0| 69 74 28 69 29 20 20 20 | 20 20 20 20 20 20 20 20 |it(i) | |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 20 20 65 78 69 74 20 | 70 72 6f 67 72 61 6d 0d | exit |program.|
|00001f10| 0d 65 78 69 74 28 69 29 | 20 74 65 72 6d 69 6e 61 |.exit(i)| termina|
|00001f20| 74 65 73 20 70 72 6f 67 | 72 61 6d 20 65 78 65 63 |tes prog|ram exec|
|00001f30| 75 74 69 6f 6e 20 77 69 | 74 68 20 65 78 69 74 20 |ution wi|th exit |
|00001f40| 73 74 61 74 75 73 20 69 | 2e 20 20 49 66 20 74 68 |status i|. If th|
|00001f50| 65 0d 70 72 6f 67 72 61 | 6d 20 77 61 73 20 72 75 |e.progra|m was ru|
|00001f60| 6e 20 66 72 6f 6d 20 74 | 68 65 20 64 65 73 6b 74 |n from t|he deskt|
|00001f70| 6f 70 20 61 6e 64 20 69 | 20 69 73 20 6e 6f 74 20 |op and i| is not |
|00001f80| 30 2c 20 74 68 65 20 75 | 73 65 72 20 69 73 20 6c |0, the u|ser is l|
|00001f90| 65 66 74 0d 69 6e 20 50 | 72 6f 49 63 6f 6e 20 72 |eft.in P|roIcon r|
|00001fa0| 61 74 68 65 72 20 74 68 | 61 6e 20 72 65 74 75 72 |ather th|an retur|
|00001fb0| 6e 69 6e 67 20 74 6f 20 | 74 68 65 20 64 65 73 6b |ning to |the desk|
|00001fc0| 74 6f 70 2e 0d 0d 44 65 | 66 61 75 6c 74 3a 20 20 |top...De|fault: |
|00001fd0| 69 20 20 20 20 20 20 20 | 30 20 28 6e 6f 72 6d 61 |i |0 (norma|
|00001fe0| 6c 20 65 78 69 74 20 73 | 74 61 74 75 73 29 0d 0d |l exit s|tatus)..|
|00001ff0| 45 72 72 6f 72 3a 20 20 | 20 20 31 30 31 20 20 20 |Error: | 101 |
|00002000| 20 20 69 20 6e 6f 74 20 | 69 6e 74 65 67 65 72 0d | i not |integer.|
|00002010| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 73 74 6f 70 28 |.See als|o: stop(|
|00002020| 29 0d 65 78 70 28 72 31 | 29 20 3a 20 72 32 20 20 |).exp(r1|) : r2 |
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002050| 63 6f 6d 70 75 74 65 20 | 65 78 70 6f 6e 65 6e 74 |compute |exponent|
|00002060| 69 61 6c 0d 0d 65 78 70 | 28 72 31 29 20 70 72 6f |ial..exp|(r1) pro|
|00002070| 64 75 63 65 73 20 65 20 | 72 61 69 73 65 64 20 74 |duces e |raised t|
|00002080| 6f 20 74 68 65 20 70 6f | 77 65 72 20 72 31 2e 0d |o the po|wer r1..|
|00002090| 0d 45 72 72 6f 72 73 3a | 20 20 20 31 30 32 20 20 |.Errors:| 102 |
|000020a0| 20 20 20 72 31 20 6e 6f | 74 20 72 65 61 6c 0d 20 | r1 no|t real. |
|000020b0| 20 20 20 20 20 20 20 20 | 20 32 30 34 20 20 20 20 | | 204 |
|000020c0| 20 6f 76 65 72 66 6c 6f | 77 0d 0d 53 65 65 20 61 | overflo|w..See a|
|000020d0| 6c 73 6f 3a 20 6c 6f 67 | 28 29 20 61 6e 64 20 4e |lso: log|() and N|
|000020e0| 31 20 5e 20 4e 32 0d 66 | 69 6c 65 28 73 31 29 20 |1 ^ N2.f|ile(s1) |
|000020f0| 3a 20 73 32 2c 20 73 33 | 2c 20 2e 2e 2e 2c 20 73 |: s2, s3|, ..., s|
|00002100| 6e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n | |
|00002110| 20 20 20 20 20 67 65 6e | 65 72 61 74 65 20 66 69 | gen|erate fi|
|00002120| 6c 65 20 6e 61 6d 65 73 | 0d 0d 66 69 6c 65 28 73 |le names|..file(s|
|00002130| 31 29 20 67 65 6e 65 72 | 61 74 65 73 20 74 68 65 |1) gener|ates the|
|00002140| 20 6e 61 6d 65 73 20 6f | 66 20 74 68 65 20 66 69 | names o|f the fi|
|00002150| 6c 65 73 20 61 6e 64 20 | 73 75 62 66 6f 6c 64 65 |les and |subfolde|
|00002160| 72 73 20 69 6e 20 74 68 | 65 0d 66 6f 6c 64 65 72 |rs in th|e.folder|
|00002170| 20 73 31 2e 20 20 49 74 | 20 66 61 69 6c 73 20 69 | s1. It| fails i|
|00002180| 66 20 73 31 20 69 73 20 | 6e 6f 74 20 74 68 65 20 |f s1 is |not the |
|00002190| 6e 61 6d 65 20 6f 66 20 | 61 20 66 6f 6c 64 65 72 |name of |a folder|
|000021a0| 2e 20 20 46 69 6c 65 0d | 6e 61 6d 65 73 20 61 72 |. File.|names ar|
|000021b0| 65 20 67 69 76 65 6e 20 | 61 73 20 70 61 72 74 69 |e given |as parti|
|000021c0| 61 6c 20 70 61 74 68 20 | 6e 61 6d 65 73 20 77 69 |al path |names wi|
|000021d0| 74 68 20 61 20 70 72 65 | 66 69 78 20 22 3a 22 2e |th a pre|fix ":".|
|000021e0| 0d 0d 44 65 66 61 75 6c | 74 3a 20 20 73 31 20 20 |..Defaul|t: s1 |
|000021f0| 20 20 20 20 63 75 72 72 | 65 6e 74 20 77 6f 72 6b | curr|ent work|
|00002200| 69 6e 67 20 66 6f 6c 64 | 65 72 0d 0d 45 72 72 6f |ing fold|er..Erro|
|00002210| 72 73 3a 20 20 20 31 30 | 33 20 20 20 20 20 73 31 |rs: 10|3 s1|
|00002220| 20 6e 6f 74 20 73 74 72 | 69 6e 67 0d 20 20 20 20 | not str|ing. |
|00002230| 20 20 20 20 20 20 33 30 | 36 20 20 20 20 20 69 6e | 30|6 in|
|00002240| 61 64 65 71 75 61 74 65 | 20 73 70 61 63 65 20 69 |adequate| space i|
|00002250| 6e 20 73 74 72 69 6e 67 | 20 72 65 67 69 6f 6e 0d |n string| region.|
|00002260| 66 69 6e 64 28 73 31 2c | 73 32 2c 69 31 2c 69 32 |find(s1,|s2,i1,i2|
|00002270| 29 20 3a 20 69 33 2c 69 | 34 2c 20 2e 2e 2e 2c 20 |) : i3,i|4, ..., |
|00002280| 69 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |in | |
|00002290| 20 20 20 20 20 20 66 69 | 6e 64 20 73 74 72 69 6e | fi|nd strin|
|000022a0| 67 0d 0d 66 69 6e 64 28 | 73 31 2c 73 32 2c 69 31 |g..find(|s1,s2,i1|
|000022b0| 2c 69 32 29 20 67 65 6e | 65 72 61 74 65 73 20 74 |,i2) gen|erates t|
|000022c0| 68 65 20 73 65 71 75 65 | 6e 63 65 20 6f 66 20 69 |he seque|nce of i|
|000022d0| 6e 74 65 67 65 72 20 70 | 6f 73 69 74 69 6f 6e 73 |nteger p|ositions|
|000022e0| 20 69 6e 0d 73 32 20 61 | 74 20 77 68 69 63 68 20 | in.s2 a|t which |
|000022f0| 73 31 20 6f 63 63 75 72 | 73 20 61 73 20 61 20 73 |s1 occur|s as a s|
|00002300| 75 62 73 74 72 69 6e 67 | 20 69 6e 20 73 32 5b 69 |ubstring| in s2[i|
|00002310| 31 3a 69 32 5d 2c 20 62 | 75 74 20 66 61 69 6c 73 |1:i2], b|ut fails|
|00002320| 20 69 66 0d 74 68 65 72 | 65 20 69 73 20 6e 6f 20 | if.ther|e is no |
|00002330| 73 75 63 68 20 70 6f 73 | 69 74 69 6f 6e 2e 0d 0d |such pos|ition...|
|00002340| 44 65 66 61 75 6c 74 73 | 3a 20 73 32 20 20 20 20 |Defaults|: s2 |
|00002350| 20 20 26 73 75 62 6a 65 | 63 74 0d 20 20 20 20 20 | &subje|ct. |
|00002360| 20 20 20 20 20 69 31 20 | 20 20 20 20 20 26 70 6f | i1 | &po|
|00002370| 73 20 69 66 20 73 32 20 | 69 73 20 64 65 66 61 75 |s if s2 |is defau|
|00002380| 6c 74 65 64 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |lted, ot|herwise |
|00002390| 31 0d 20 20 20 20 20 20 | 20 20 20 20 69 32 20 20 |1. | i2 |
|000023a0| 20 20 20 20 30 0d 0d 45 | 72 72 6f 72 73 3a 20 20 | 0..E|rrors: |
|000023b0| 20 31 30 31 20 20 20 20 | 20 69 31 20 6f 72 20 69 | 101 | i1 or i|
|000023c0| 32 20 6e 6f 74 20 69 6e | 74 65 67 65 72 0d 20 20 |2 not in|teger. |
|000023d0| 20 20 20 20 20 20 20 20 | 31 30 33 20 20 20 20 20 | |103 |
|000023e0| 73 31 20 6f 72 20 73 32 | 20 6e 6f 74 20 73 74 72 |s1 or s2| not str|
|000023f0| 69 6e 67 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 62 |ing..See| also: b|
|00002400| 61 6c 28 29 2c 20 6d 61 | 74 63 68 28 29 20 61 6e |al(), ma|tch() an|
|00002410| 64 20 75 70 74 6f 28 29 | 0d 66 73 65 74 28 73 31 |d upto()|.fset(s1|
|00002420| 2c 73 32 2c 73 33 29 20 | 3a 20 73 31 20 20 20 20 |,s2,s3) |: s1 |
|00002430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002440| 20 20 20 20 20 20 20 73 | 65 74 20 66 69 6c 65 20 | s|et file |
|00002450| 73 69 67 6e 61 74 75 72 | 65 73 0d 0d 66 73 65 74 |signatur|es..fset|
|00002460| 28 73 31 2c 73 32 2c 73 | 33 29 20 73 65 74 73 20 |(s1,s2,s|3) sets |
|00002470| 74 68 65 20 74 79 70 65 | 20 61 6e 64 20 63 72 65 |the type| and cre|
|00002480| 61 74 6f 72 20 73 69 67 | 6e 61 74 75 72 65 73 20 |ator sig|natures |
|00002490| 6f 66 20 73 31 20 74 6f | 20 73 32 0d 61 6e 64 20 |of s1 to| s2.and |
|000024a0| 73 33 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 2e |s3 respe|ctively.|
|000024b0| 20 20 49 66 20 73 32 20 | 6f 72 20 73 33 20 69 73 | If s2 |or s3 is|
|000024c0| 20 74 68 65 20 65 6d 70 | 74 79 20 73 74 72 69 6e | the emp|ty strin|
|000024d0| 67 2c 20 74 68 65 0d 63 | 6f 72 72 65 73 70 6f 6e |g, the.c|orrespon|
|000024e0| 64 69 6e 67 20 73 69 67 | 6e 61 74 75 72 65 20 69 |ding sig|nature i|
|000024f0| 73 20 6e 6f 74 20 63 68 | 61 6e 67 65 64 2e 20 66 |s not ch|anged. f|
|00002500| 73 65 74 28 73 31 2c 73 | 32 2c 73 33 29 20 66 61 |set(s1,s|2,s3) fa|
|00002510| 69 6c 73 20 69 66 0d 73 | 31 20 69 73 20 6e 6f 74 |ils if.s|1 is not|
|00002520| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 61 20 66 | the nam|e of a f|
|00002530| 69 6c 65 2e 0d 0d 44 65 | 66 61 75 6c 74 73 3a 20 |ile...De|faults: |
|00002540| 73 32 20 20 20 20 20 20 | 22 22 0d 20 20 20 20 20 |s2 |"". |
|00002550| 20 20 20 20 20 73 33 20 | 20 20 20 20 20 22 22 0d | s3 | "".|
|00002560| 0d 45 72 72 6f 72 3a 20 | 20 20 20 33 30 36 20 20 |.Error: | 306 |
|00002570| 20 20 20 69 6e 61 64 65 | 71 75 61 74 65 20 73 70 | inade|quate sp|
|00002580| 61 63 65 20 69 6e 20 73 | 74 72 69 6e 67 20 72 65 |ace in s|tring re|
|00002590| 67 69 6f 6e 0d 66 74 79 | 70 65 28 73 31 29 20 3a |gion.fty|pe(s1) :|
|000025a0| 20 73 32 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | s2 | |
|000025b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025c0| 20 20 20 20 20 20 20 20 | 20 67 65 74 20 66 69 6c | | get fil|
|000025d0| 65 20 74 79 70 65 0d 0d | 49 66 20 73 31 20 69 73 |e type..|If s1 is|
|000025e0| 20 61 20 66 69 6c 65 2c | 20 66 74 79 70 65 28 73 | a file,| ftype(s|
|000025f0| 31 29 20 72 65 74 75 72 | 6e 73 20 61 6e 20 38 2d |1) retur|ns an 8-|
|00002600| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00002610| 20 63 6f 6e 73 69 73 74 | 2d 0d 69 6e 67 20 6f 66 | consist|-.ing of|
|00002620| 20 74 68 65 20 74 79 70 | 65 20 61 6e 64 20 63 72 | the typ|e and cr|
|00002630| 65 61 74 6f 72 20 73 69 | 67 6e 61 74 75 72 65 73 |eator si|gnatures|
|00002640| 20 66 6f 72 20 73 31 2e | 20 49 66 20 73 31 20 69 | for s1.| If s1 i|
|00002650| 73 20 61 20 66 6f 6c 64 | 65 72 2c 0d 66 74 79 70 |s a fold|er,.ftyp|
|00002660| 65 28 73 31 29 20 72 65 | 74 75 72 6e 73 20 74 68 |e(s1) re|turns th|
|00002670| 65 20 65 6d 70 74 79 20 | 73 74 72 69 6e 67 2e 20 |e empty |string. |
|00002680| 49 74 20 66 61 69 6c 73 | 20 69 66 20 73 31 20 69 |It fails| if s1 i|
|00002690| 73 20 6e 65 69 74 68 65 | 72 2e 0d 0d 45 72 72 6f |s neithe|r...Erro|
|000026a0| 72 73 3a 20 20 20 31 30 | 33 20 20 20 20 20 73 31 |rs: 10|3 s1|
|000026b0| 20 6e 6f 74 20 73 74 72 | 69 6e 67 0d 20 20 20 20 | not str|ing. |
|000026c0| 20 20 20 20 20 20 33 30 | 36 20 20 20 20 20 69 6e | 30|6 in|
|000026d0| 61 64 65 71 75 61 74 65 | 20 73 70 61 63 65 20 69 |adequate| space i|
|000026e0| 6e 20 73 74 72 69 6e 67 | 20 72 65 67 69 6f 6e 0d |n string| region.|
|000026f0| 67 65 74 28 4c 29 20 3a | 20 78 20 20 20 20 20 20 |get(L) :| x |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 | | ge|
|00002720| 74 20 76 61 6c 75 65 20 | 66 72 6f 6d 20 6c 69 73 |t value |from lis|
|00002730| 74 0d 0d 67 65 74 28 4c | 29 20 70 72 6f 64 75 63 |t..get(L|) produc|
|00002740| 65 73 20 74 68 65 20 6c | 65 66 74 6d 6f 73 74 20 |es the l|eftmost |
|00002750| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 4c 20 61 6e 64 |element |of L and|
|00002760| 20 72 65 6d 6f 76 65 73 | 20 69 74 20 66 72 6f 6d | removes| it from|
|00002770| 20 4c 2c 0d 62 75 74 20 | 66 61 69 6c 73 20 69 66 | L,.but |fails if|
|00002780| 20 4c 20 69 73 20 65 6d | 70 74 79 2e 20 67 65 74 | L is em|pty. get|
|00002790| 20 69 73 20 61 20 73 79 | 6e 6f 6e 79 6d 20 66 6f | is a sy|nonym fo|
|000027a0| 72 20 70 6f 70 2e 0d 0d | 45 72 72 6f 72 3a 20 20 |r pop...|Error: |
|000027b0| 20 20 31 30 38 20 20 20 | 20 20 4c 20 6e 6f 74 20 | 108 | L not |
|000027c0| 6c 69 73 74 0d 0d 53 65 | 65 20 61 6c 73 6f 3a 20 |list..Se|e also: |
|000027d0| 70 6f 70 28 29 2c 20 70 | 75 6c 6c 28 29 2c 20 70 |pop(), p|ull(), p|
|000027e0| 75 73 68 28 29 2c 20 61 | 6e 64 20 70 75 74 28 29 |ush(), a|nd put()|
|000027f0| 0d 67 65 74 63 68 28 29 | 20 3a 20 73 20 20 20 20 |.getch()| : s |
|00002800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 67 65 74 | 20 63 68 61 72 61 63 74 | get| charact|
|00002830| 65 72 0d 0d 67 65 74 63 | 68 28 29 20 77 61 69 74 |er..getc|h() wait|
|00002840| 73 20 75 6e 74 69 6c 20 | 61 20 63 68 61 72 61 63 |s until |a charac|
|00002850| 74 65 72 20 68 61 73 20 | 62 65 65 6e 20 65 6e 74 |ter has |been ent|
|00002860| 65 72 65 64 20 66 72 6f | 6d 20 74 68 65 0d 6b 65 |ered fro|m the.ke|
|00002870| 79 62 6f 61 72 64 20 61 | 6e 64 20 74 68 65 6e 20 |yboard a|nd then |
|00002880| 70 72 6f 64 75 63 65 73 | 20 74 68 65 20 63 6f 72 |produces| the cor|
|00002890| 72 65 73 70 6f 6e 64 69 | 6e 67 20 6f 6e 65 2d 63 |respondi|ng one-c|
|000028a0| 68 61 72 61 63 74 65 72 | 0d 73 74 72 69 6e 67 2e |haracter|.string.|
|000028b0| 20 54 68 65 20 63 68 61 | 72 61 63 74 65 72 20 69 | The cha|racter i|
|000028c0| 73 20 6e 6f 74 20 64 69 | 73 70 6c 61 79 65 64 2e |s not di|splayed.|
|000028d0| 20 20 49 74 20 66 61 69 | 6c 73 20 6f 6e 20 61 6e | It fai|ls on an|
|000028e0| 20 65 6e 64 2d 6f 66 2d | 0d 66 69 6c 65 2e 0d 0d | end-of-|.file...|
|000028f0| 53 65 65 20 61 6c 73 6f | 3a 20 67 65 74 63 68 65 |See also|: getche|
|00002900| 28 29 20 61 6e 64 20 6b | 62 68 69 74 28 29 0d 67 |() and k|bhit().g|
|00002910| 65 74 63 68 65 28 29 20 | 3a 20 73 20 20 20 20 20 |etche() |: s |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002930| 20 20 20 20 20 20 20 20 | 20 20 67 65 74 20 61 6e | | get an|
|00002940| 64 20 65 63 68 6f 20 63 | 68 61 72 61 63 74 65 72 |d echo c|haracter|
|00002950| 0d 0d 67 65 74 63 68 65 | 28 29 20 77 61 69 74 73 |..getche|() waits|
|00002960| 20 75 6e 74 69 6c 20 61 | 20 63 68 61 72 61 63 74 | until a| charact|
|00002970| 65 72 20 68 61 73 20 62 | 65 65 6e 20 65 6e 74 65 |er has b|een ente|
|00002980| 72 65 64 20 66 72 6f 6d | 20 74 68 65 20 6b 65 79 |red from| the key|
|00002990| 2d 0d 62 6f 61 72 64 20 | 61 6e 64 20 74 68 65 6e |-.board |and then|
|000029a0| 20 70 72 6f 64 75 63 65 | 73 20 74 68 65 20 63 6f | produce|s the co|
|000029b0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 6f 6e 65 2d |rrespond|ing one-|
|000029c0| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|000029d0| 2e 0d 54 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |..The ch|aracter |
|000029e0| 69 73 20 64 69 73 70 6c | 61 79 65 64 20 69 6e 20 |is displ|ayed in |
|000029f0| 74 68 65 20 49 6e 74 65 | 72 61 63 74 69 76 65 20 |the Inte|ractive |
|00002a00| 77 69 6e 64 6f 77 2e 20 | 49 74 20 66 61 69 6c 73 |window. |It fails|
|00002a10| 20 6f 6e 0d 61 6e 20 65 | 6e 64 2d 6f 66 2d 66 69 | on.an e|nd-of-fi|
|00002a20| 6c 65 2e 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 67 |le...See| also: g|
|00002a30| 65 74 63 68 28 29 20 61 | 6e 64 20 6b 62 68 69 74 |etch() a|nd kbhit|
|00002a40| 28 29 0d 67 65 74 66 69 | 6c 65 28 73 31 2c 73 32 |().getfi|le(s1,s2|
|00002a50| 2c 73 33 29 20 3a 20 73 | 34 20 20 20 20 20 20 20 |,s3) : s|4 |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a70| 20 20 20 20 20 20 20 67 | 65 74 20 66 69 6c 65 20 | g|et file |
|00002a80| 6e 61 6d 65 0d 0d 67 65 | 74 66 69 6c 65 28 73 31 |name..ge|tfile(s1|
|00002a90| 2c 73 32 2c 73 33 29 20 | 70 65 72 66 6f 72 6d 73 |,s2,s3) |performs|
|00002aa0| 20 61 20 47 65 74 20 46 | 69 6c 65 20 44 69 61 6c | a Get F|ile Dial|
|00002ab0| 6f 67 20 66 6f 72 20 74 | 68 65 20 66 6f 6c 64 65 |og for t|he folde|
|00002ac0| 72 20 73 33 0d 77 69 74 | 68 20 73 31 20 64 69 73 |r s3.wit|h s1 dis|
|00002ad0| 70 6c 61 79 65 64 20 61 | 73 20 61 20 75 73 65 72 |played a|s a user|
|00002ae0| 20 70 72 6f 6d 70 74 2e | 20 73 32 20 69 73 20 61 | prompt.| s2 is a|
|00002af0| 20 30 2d 2c 20 34 2d 2c | 20 38 2d 2c 20 31 32 2d | 0-, 4-,| 8-, 12-|
|00002b00| 2c 20 6f 72 0d 31 36 2d | 63 68 61 72 61 63 74 65 |, or.16-|characte|
|00002b10| 72 20 73 74 72 69 6e 67 | 20 74 68 61 74 20 69 73 |r string| that is|
|00002b20| 20 75 73 65 64 20 74 6f | 20 66 69 6c 74 65 72 20 | used to| filter |
|00002b30| 74 68 65 20 66 69 6c 65 | 73 20 64 69 73 70 6c 61 |the file|s displa|
|00002b40| 79 65 64 20 69 6e 0d 74 | 68 65 20 64 69 61 6c 6f |yed in.t|he dialo|
|00002b50| 67 2e 20 20 4f 6e 6c 79 | 20 66 69 6c 65 73 20 77 |g. Only| files w|
|00002b60| 69 74 68 20 77 69 74 68 | 20 6d 61 74 63 68 69 6e |ith with| matchin|
|00002b70| 67 20 74 79 70 65 20 73 | 69 67 6e 61 74 75 72 65 |g type s|ignature|
|00002b80| 73 20 61 72 65 0d 64 69 | 73 70 6c 61 79 65 64 2e |s are.di|splayed.|
|00002b90| 20 20 67 65 74 66 69 6c | 65 28 73 31 2c 73 32 2c | getfil|e(s1,s2,|
|00002ba0| 73 33 29 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |s3) retu|rns the |
|00002bb0| 74 68 65 20 66 75 6c 6c | 20 70 61 74 68 20 6e 61 |the full| path na|
|00002bc0| 6d 65 20 6f 66 0d 74 68 | 65 20 66 69 6c 65 20 73 |me of.th|e file s|
|00002bd0| 65 6c 65 63 74 65 64 20 | 62 79 20 74 68 65 20 75 |elected |by the u|
|00002be0| 73 65 72 2e 20 20 49 66 | 20 74 68 65 20 73 69 67 |ser. If| the sig|
|00002bf0| 6e 61 74 75 72 65 20 69 | 73 20 74 68 65 20 6f 6e |nature i|s the on|
|00002c00| 65 2d 0d 63 68 61 72 61 | 63 74 65 72 20 73 74 72 |e-.chara|cter str|
|00002c10| 69 6e 67 20 22 66 22 2c | 20 6f 6e 6c 79 20 66 6f |ing "f",| only fo|
|00002c20| 6c 64 65 72 73 20 61 72 | 65 20 64 69 73 70 6c 61 |lders ar|e displa|
|00002c30| 79 65 64 2e 20 54 68 65 | 20 66 75 6e 63 74 69 6f |yed. The| functio|
|00002c40| 6e 0d 72 65 74 75 72 6e | 73 20 74 68 65 20 70 61 |n.return|s the pa|
|00002c50| 74 68 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 |th name |of the f|
|00002c60| 6f 6c 64 65 72 20 73 65 | 6c 65 63 74 65 64 2e 20 |older se|lected. |
|00002c70| 20 54 68 65 20 66 75 6e | 63 74 69 6f 6e 20 66 61 | The fun|ction fa|
|00002c80| 69 6c 73 0d 69 66 20 74 | 68 65 20 75 73 65 72 20 |ils.if t|he user |
|00002c90| 73 65 6c 65 63 74 73 20 | 43 61 6e 63 65 6c 2e 20 |selects |Cancel. |
|00002ca0| 20 54 68 65 20 73 65 6c | 65 63 74 65 64 20 66 69 | The sel|ected fi|
|00002cb0| 6c 65 20 69 73 20 6e 6f | 74 20 6f 70 65 6e 65 64 |le is no|t opened|
|00002cc0| 3b 0d 6f 6e 6c 79 20 69 | 74 73 20 70 61 74 68 20 |;.only i|ts path |
|00002cd0| 6e 61 6d 65 20 69 73 20 | 72 65 74 75 72 6e 65 64 |name is |returned|
|00002ce0| 2e 0d 0d 44 65 66 61 75 | 6c 74 73 3a 20 73 32 20 |...Defau|lts: s2 |
|00002cf0| 20 20 20 20 20 6e 6f 20 | 66 69 6c 65 20 66 69 6c | no |file fil|
|00002d00| 74 65 72 69 6e 67 0d 20 | 20 20 20 20 20 20 20 20 |tering. | |
|00002d10| 20 73 33 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | s3 | current|
|00002d20| 20 77 6f 72 6b 69 6e 67 | 20 66 6f 6c 64 65 72 0d | working| folder.|
|00002d30| 0d 45 72 72 6f 72 73 3a | 20 20 20 31 30 33 20 20 |.Errors:| 103 |
|00002d40| 20 20 20 73 31 2c 20 73 | 32 2c 20 6f 72 20 73 33 | s1, s|2, or s3|
|00002d50| 20 6e 6f 74 20 73 74 72 | 69 6e 67 0d 20 20 20 20 | not str|ing. |
|00002d60| 20 20 20 20 20 20 33 30 | 36 20 20 20 20 20 69 6e | 30|6 in|
|00002d70| 61 64 65 71 75 61 74 65 | 20 73 70 61 63 65 20 69 |adequate| space i|
|00002d80| 6e 20 73 74 72 69 6e 67 | 20 72 65 67 69 6f 6e 0d |n string| region.|
|00002d90| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 70 75 74 66 69 |.See als|o: putfi|
|00002da0| 6c 65 28 29 0d 67 65 74 | 74 65 78 74 28 73 31 2c |le().get|text(s1,|
|00002db0| 73 32 2c 73 33 2c 73 34 | 29 20 3a 20 73 35 20 20 |s2,s3,s4|) : s5 |
|00002dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 | | ge|
|00002de0| 74 20 74 65 78 74 0d 0d | 67 65 74 74 65 78 74 28 |t text..|gettext(|
|00002df0| 73 31 2c 73 32 2c 73 33 | 2c 73 34 29 20 70 72 65 |s1,s2,s3|,s4) pre|
|00002e00| 73 65 6e 74 73 20 61 20 | 64 69 61 6c 6f 67 20 62 |sents a |dialog b|
|00002e10| 6f 78 20 77 69 74 68 20 | 6d 65 73 73 61 67 65 20 |ox with |message |
|00002e20| 73 31 20 61 6e 64 0d 65 | 64 69 74 61 62 6c 65 20 |s1 and.e|ditable |
|00002e30| 74 65 78 74 20 73 34 2e | 20 20 73 32 20 69 73 20 |text s4.| s2 is |
|00002e40| 74 65 78 74 20 66 6f 72 | 20 74 68 65 20 4f 4b 20 |text for| the OK |
|00002e50| 62 75 74 74 6f 6e 20 61 | 6e 64 20 73 33 20 69 73 |button a|nd s3 is|
|00002e60| 20 74 68 65 0d 74 69 74 | 6c 65 20 66 6f 72 20 74 | the.tit|le for t|
|00002e70| 68 65 20 43 61 6e 63 65 | 6c 20 62 75 74 74 6f 6e |he Cance|l button|
|00002e80| 2e 20 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |. The fu|nction r|
|00002e90| 65 74 75 72 6e 73 20 74 | 68 65 20 65 64 69 74 61 |eturns t|he edita|
|00002ea0| 62 6c 65 0d 74 65 78 74 | 2c 20 77 68 69 63 68 20 |ble.text|, which |
|00002eb0| 6d 61 79 20 68 61 76 65 | 20 62 65 65 6e 20 6d 6f |may have| been mo|
|00002ec0| 64 69 66 69 65 64 2e 20 | 54 68 65 20 66 75 6e 63 |dified. |The func|
|00002ed0| 74 69 6f 6e 20 66 61 69 | 6c 73 20 69 66 20 74 68 |tion fai|ls if th|
|00002ee0| 65 0d 75 73 65 72 20 73 | 65 6c 65 63 74 73 20 74 |e.user s|elects t|
|00002ef0| 68 65 20 43 61 6e 63 65 | 6c 20 62 75 74 74 6f 6e |he Cance|l button|
|00002f00| 2e 0d 0d 44 65 66 61 75 | 6c 74 73 3a 20 73 31 20 |...Defau|lts: s1 |
|00002f10| 20 20 20 20 20 22 22 0d | 20 20 20 20 20 20 20 20 | "".| |
|00002f20| 20 20 73 32 20 20 20 20 | 20 20 22 22 20 28 4f 4b | s2 | "" (OK|
|00002f30| 20 64 69 73 70 6c 61 79 | 65 64 29 0d 20 20 20 20 | display|ed). |
|00002f40| 20 20 20 20 20 20 73 33 | 20 20 20 20 20 20 22 22 | s3| ""|
|00002f50| 20 28 6e 6f 20 43 61 6e | 63 65 6c 20 62 75 74 74 | (no Can|cel butt|
|00002f60| 6f 6e 29 0d 73 34 20 20 | 20 20 20 20 22 22 0d 0d |on).s4 | ""..|
|00002f70| 45 72 72 6f 72 3a 20 20 | 20 20 31 30 33 20 20 20 |Error: | 103 |
|00002f80| 20 20 73 31 2c 20 73 32 | 2c 20 73 33 2c 20 6f 72 | s1, s2|, s3, or|
|00002f90| 20 73 34 20 6e 6f 74 20 | 73 74 72 69 6e 67 0d 0d | s4 not |string..|
|00002fa0| 53 65 65 20 61 6c 73 6f | 3a 20 6d 65 73 73 61 67 |See also|: messag|
|00002fb0| 65 28 29 0d 69 61 6e 64 | 28 69 31 2c 69 32 29 20 |e().iand|(i1,i2) |
|00002fc0| 3a 20 69 33 20 20 20 20 | 20 20 20 20 20 20 20 20 |: i3 | |
|00002fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fe0| 20 63 6f 6d 70 75 74 65 | 20 62 69 74 2d 77 69 73 | compute| bit-wis|
|00002ff0| 65 20 61 6e 64 0d 0d 69 | 61 6e 64 28 69 31 2c 69 |e and..i|and(i1,i|
|00003000| 32 29 20 70 72 6f 64 75 | 63 65 73 20 61 6e 20 69 |2) produ|ces an i|
|00003010| 6e 74 65 67 65 72 20 63 | 6f 6e 73 69 73 74 69 6e |nteger c|onsistin|
|00003020| 67 20 6f 66 20 74 68 65 | 20 62 69 74 2d 77 69 73 |g of the| bit-wis|
|00003030| 65 20 61 6e 64 20 6f 66 | 0d 69 31 20 61 6e 64 20 |e and of|.i1 and |
|00003040| 69 32 2e 0d 0d 45 72 72 | 6f 72 3a 20 20 20 20 31 |i2...Err|or: 1|
|00003050| 30 31 20 20 20 20 20 69 | 31 20 6f 72 20 69 32 20 |01 i|1 or i2 |
|00003060| 6e 6f 74 20 69 6e 74 65 | 67 65 72 0d 0d 53 65 65 |not inte|ger..See|
|00003070| 20 61 6c 73 6f 3a 20 69 | 63 6f 6d 28 29 2c 20 69 | also: i|com(), i|
|00003080| 6f 72 28 29 2c 20 69 73 | 68 69 66 74 28 29 2c 20 |or(), is|hift(), |
|00003090| 61 6e 64 20 69 78 6f 72 | 28 29 0d 69 63 6f 6d 28 |and ixor|().icom(|
|000030a0| 69 31 29 20 3a 20 69 32 | 20 20 20 20 20 20 20 20 |i1) : i2| |
|000030b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000030c0| 20 63 6f 6d 70 75 74 65 | 20 62 69 74 2d 77 69 73 | compute| bit-wis|
|000030d0| 65 20 63 6f 6d 70 6c 65 | 6d 65 6e 74 0d 0d 69 63 |e comple|ment..ic|
|000030e0| 6f 6d 28 69 31 29 20 70 | 72 6f 64 75 63 65 73 20 |om(i1) p|roduces |
|000030f0| 74 68 65 20 62 69 74 2d | 77 69 73 65 20 63 6f 6d |the bit-|wise com|
|00003100| 70 6c 65 6d 65 6e 74 20 | 6f 66 20 69 31 2e 0d 0d |plement |of i1...|
|00003110| 45 72 72 6f 72 3a 20 20 | 20 20 31 30 31 20 20 20 |Error: | 101 |
|00003120| 20 20 69 31 20 6e 6f 74 | 20 69 6e 74 65 67 65 72 | i1 not| integer|
|00003130| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 69 61 6e 64 |..See al|so: iand|
|00003140| 28 29 2c 20 69 6f 72 28 | 29 2c 20 69 73 68 69 66 |(), ior(|), ishif|
|00003150| 74 28 29 2c 20 61 6e 64 | 20 69 78 6f 72 28 29 0d |t(), and| ixor().|
|00003160| 69 6d 61 67 65 28 78 29 | 20 3a 20 73 20 20 20 20 |image(x)| : s |
|00003170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 6f | | pro|
|00003190| 64 75 63 65 20 73 74 72 | 69 6e 67 20 69 6d 61 67 |duce str|ing imag|
|000031a0| 65 0d 0d 69 6d 61 67 65 | 28 78 29 20 70 72 6f 64 |e..image|(x) prod|
|000031b0| 75 63 65 73 20 61 20 73 | 74 72 69 6e 67 20 69 6d |uces a s|tring im|
|000031c0| 61 67 65 20 6f 66 20 78 | 2e 0d 0d 45 72 72 6f 72 |age of x|...Error|
|000031d0| 3a 20 20 20 20 33 30 36 | 20 20 20 20 20 69 6e 61 |: 306| ina|
|000031e0| 64 65 71 75 61 74 65 20 | 73 70 61 63 65 20 69 6e |dequate |space in|
|000031f0| 20 73 74 72 69 6e 67 20 | 72 65 67 69 6f 6e 0d 69 | string |region.i|
|00003200| 6e 73 65 72 74 28 58 2c | 78 31 2c 78 32 29 20 3a |nsert(X,|x1,x2) :|
|00003210| 20 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | X | |
|00003220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003230| 20 20 69 6e 73 65 72 74 | 20 65 6c 65 6d 65 6e 74 | insert| element|
|00003240| 0d 0d 49 66 20 58 20 69 | 73 20 61 20 74 61 62 6c |..If X i|s a tabl|
|00003250| 65 2c 20 69 6e 73 65 72 | 74 28 58 2c 78 31 2c 78 |e, inser|t(X,x1,x|
|00003260| 32 29 20 69 6e 73 65 72 | 74 73 20 6b 65 79 20 78 |2) inser|ts key x|
|00003270| 31 20 77 69 74 68 20 76 | 61 6c 75 65 20 78 32 0d |1 with v|alue x2.|
|00003280| 69 6e 74 6f 20 58 2e 20 | 20 49 66 20 58 20 69 73 |into X. | If X is|
|00003290| 20 61 20 73 65 74 2c 20 | 69 6e 73 65 72 74 28 58 | a set, |insert(X|
|000032a0| 2c 78 31 29 20 69 6e 73 | 65 72 74 73 20 78 31 20 |,x1) ins|erts x1 |
|000032b0| 69 6e 74 6f 20 58 2e 0d | 69 6e 73 65 72 74 28 58 |into X..|insert(X|
|000032c0| 2c 78 31 2c 78 32 29 20 | 70 72 6f 64 75 63 65 73 |,x1,x2) |produces|
|000032d0| 20 58 2e 0d 0d 44 65 66 | 61 75 6c 74 3a 20 20 78 | X...Def|ault: x|
|000032e0| 32 20 20 20 20 20 20 26 | 6e 75 6c 6c 0d 0d 45 72 |2 &|null..Er|
|000032f0| 72 6f 72 73 3a 20 20 20 | 31 32 32 20 20 20 20 20 |rors: |122 |
|00003300| 58 20 6e 6f 74 20 73 65 | 74 20 6f 72 20 74 61 62 |X not se|t or tab|
|00003310| 6c 65 0d 20 20 20 20 20 | 20 20 20 20 20 33 30 37 |le. | 307|
|00003320| 20 20 20 20 20 69 6e 61 | 64 65 71 75 61 74 65 20 | ina|dequate |
|00003330| 73 70 61 63 65 20 69 6e | 20 62 6c 6f 63 6b 20 72 |space in| block r|
|00003340| 65 67 69 6f 6e 0d 0d 53 | 65 65 20 61 6c 73 6f 3a |egion..S|ee also:|
|00003350| 20 64 65 6c 65 74 65 28 | 29 20 61 6e 64 20 6d 65 | delete(|) and me|
|00003360| 6d 62 65 72 28 29 0d 69 | 6e 74 65 67 65 72 28 78 |mber().i|nteger(x|
|00003370| 29 20 3a 20 69 20 20 20 | 20 20 20 20 20 20 20 20 |) : i | |
|00003380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003390| 20 20 20 20 20 20 63 6f | 6e 76 65 72 74 20 74 6f | co|nvert to|
|000033a0| 20 69 6e 74 65 67 65 72 | 0d 0d 69 6e 74 65 67 65 | integer|..intege|
|000033b0| 72 28 78 29 20 70 72 6f | 64 75 63 65 73 20 74 68 |r(x) pro|duces th|
|000033c0| 65 20 69 6e 74 65 67 65 | 72 20 72 65 73 75 6c 74 |e intege|r result|
|000033d0| 69 6e 67 20 66 72 6f 6d | 20 63 6f 6e 76 65 72 74 |ing from| convert|
|000033e0| 69 6e 67 20 78 2c 20 62 | 75 74 0d 66 61 69 6c 73 |ing x, b|ut.fails|
|000033f0| 20 69 66 20 74 68 65 20 | 63 6f 6e 76 65 72 73 69 | if the |conversi|
|00003400| 6f 6e 20 69 73 20 6e 6f | 74 20 70 6f 73 73 69 62 |on is no|t possib|
|00003410| 6c 65 2e 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 6e |le...See| also: n|
|00003420| 75 6d 65 72 69 63 28 29 | 20 61 6e 64 20 72 65 61 |umeric()| and rea|
|00003430| 6c 28 29 0d 69 6f 72 28 | 69 31 2c 69 32 29 20 3a |l().ior(|i1,i2) :|
|00003440| 20 69 33 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | i3 | |
|00003450| 20 20 20 20 20 20 20 20 | 63 6f 6d 70 75 74 65 20 | |compute |
|00003460| 62 69 74 2d 77 69 73 65 | 20 69 6e 63 6c 75 73 69 |bit-wise| inclusi|
|00003470| 76 65 20 6f 72 0d 0d 69 | 6f 72 28 69 31 2c 69 32 |ve or..i|or(i1,i2|
|00003480| 29 20 70 72 6f 64 75 63 | 65 73 20 74 68 65 20 62 |) produc|es the b|
|00003490| 69 74 2d 77 69 73 65 20 | 69 6e 63 6c 75 73 69 76 |it-wise |inclusiv|
|000034a0| 65 20 6f 72 20 6f 66 20 | 69 31 20 61 6e 64 20 69 |e or of |i1 and i|
|000034b0| 32 2e 0d 0d 45 72 72 6f | 72 3a 20 20 20 20 31 30 |2...Erro|r: 10|
|000034c0| 31 20 20 20 20 20 69 31 | 20 6f 72 20 69 32 20 6e |1 i1| or i2 n|
|000034d0| 6f 74 20 69 6e 74 65 67 | 65 72 0d 0d 53 65 65 20 |ot integ|er..See |
|000034e0| 61 6c 73 6f 3a 20 69 61 | 6e 64 28 29 2c 20 69 63 |also: ia|nd(), ic|
|000034f0| 6f 6d 28 29 2c 20 69 73 | 68 69 66 74 28 29 2c 20 |om(), is|hift(), |
|00003500| 61 6e 64 20 69 78 6f 72 | 28 29 0d 69 73 68 69 66 |and ixor|().ishif|
|00003510| 74 28 69 31 2c 69 32 29 | 20 3a 20 69 33 20 20 20 |t(i1,i2)| : i3 |
|00003520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003540| 20 20 73 68 69 66 74 20 | 62 69 74 73 0d 0d 69 73 | shift |bits..is|
|00003550| 68 69 66 74 28 69 31 2c | 69 32 29 20 70 72 6f 64 |hift(i1,|i2) prod|
|00003560| 75 63 65 73 20 74 68 65 | 20 72 65 73 75 6c 74 20 |uces the| result |
|00003570| 6f 66 20 73 68 69 66 74 | 69 6e 67 20 74 68 65 20 |of shift|ing the |
|00003580| 62 69 74 73 20 69 6e 20 | 69 31 20 62 79 0d 69 32 |bits in |i1 by.i2|
|00003590| 20 70 6f 73 69 74 69 6f | 6e 73 2e 20 20 50 6f 73 | positio|ns. Pos|
|000035a0| 69 74 69 76 65 20 73 68 | 69 66 74 20 69 73 20 74 |itive sh|ift is t|
|000035b0| 6f 20 74 68 65 20 6c 65 | 66 74 2c 20 6e 65 67 61 |o the le|ft, nega|
|000035c0| 74 69 76 65 20 74 6f 20 | 74 68 65 0d 72 69 67 68 |tive to |the.righ|
|000035d0| 74 2e 20 20 56 61 63 61 | 74 65 64 20 62 69 74 20 |t. Vaca|ted bit |
|000035e0| 70 6f 73 69 74 69 6f 6e | 73 20 61 72 65 20 7a 65 |position|s are ze|
|000035f0| 72 6f 2d 66 69 6c 6c 65 | 64 2e 0d 0d 45 72 72 6f |ro-fille|d...Erro|
|00003600| 72 3a 20 20 20 20 31 30 | 31 20 20 20 20 20 69 31 |r: 10|1 i1|
|00003610| 20 6f 72 20 69 32 20 6e | 6f 74 20 69 6e 74 65 67 | or i2 n|ot integ|
|00003620| 65 72 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 69 61 |er..See |also: ia|
|00003630| 6e 64 28 29 2c 20 69 63 | 6f 6d 28 29 2c 20 69 6f |nd(), ic|om(), io|
|00003640| 72 28 29 2c 20 61 6e 64 | 20 69 78 6f 72 28 29 0d |r(), and| ixor().|
|00003650| 69 78 6f 72 28 69 31 2c | 69 32 29 20 3a 20 69 33 |ixor(i1,|i2) : i3|
|00003660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003670| 20 20 20 20 63 6f 6d 70 | 75 74 65 20 62 69 74 2d | comp|ute bit-|
|00003680| 77 69 73 65 20 65 78 63 | 6c 75 73 69 76 65 20 6f |wise exc|lusive o|
|00003690| 72 0d 0d 69 78 6f 72 28 | 69 31 2c 69 32 29 20 70 |r..ixor(|i1,i2) p|
|000036a0| 72 6f 64 75 63 65 73 20 | 74 68 65 20 62 69 74 2d |roduces |the bit-|
|000036b0| 77 69 73 65 20 65 78 63 | 6c 75 73 69 76 65 20 6f |wise exc|lusive o|
|000036c0| 72 20 6f 66 20 69 31 20 | 61 6e 64 20 69 32 2e 0d |r of i1 |and i2..|
|000036d0| 0d 45 72 72 6f 72 3a 20 | 20 20 20 31 30 31 20 20 |.Error: | 101 |
|000036e0| 20 20 20 69 31 20 6f 72 | 20 69 32 20 6e 6f 74 20 | i1 or| i2 not |
|000036f0| 69 6e 74 65 67 65 72 0d | 0d 53 65 65 20 61 6c 73 |integer.|.See als|
|00003700| 6f 3a 20 69 61 6e 64 28 | 29 2c 20 69 63 6f 6d 28 |o: iand(|), icom(|
|00003710| 29 2c 20 69 6f 72 28 29 | 2c 20 61 6e 64 20 69 73 |), ior()|, and is|
|00003720| 68 69 66 74 28 29 0d 6b | 62 68 69 74 28 29 20 3a |hift().k|bhit() :|
|00003730| 20 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | n | |
|00003740| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 68 65 63 | | chec|
|00003750| 6b 20 66 6f 72 20 6b 65 | 79 62 6f 61 72 64 20 63 |k for ke|yboard c|
|00003760| 68 61 72 61 63 74 65 72 | 0d 0d 6b 62 68 69 74 28 |haracter|..kbhit(|
|00003770| 29 20 73 75 63 63 65 65 | 64 73 20 69 66 20 61 20 |) succee|ds if a |
|00003780| 63 68 61 72 61 63 74 65 | 72 20 69 73 20 61 76 61 |characte|r is ava|
|00003790| 69 6c 61 62 6c 65 20 66 | 6f 72 20 67 65 74 63 68 |ilable f|or getch|
|000037a0| 20 6f 72 20 67 65 74 63 | 68 65 0d 62 75 74 20 66 | or getc|he.but f|
|000037b0| 61 69 6c 73 20 6f 74 68 | 65 72 77 69 73 65 2e 0d |ails oth|erwise..|
|000037c0| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 67 65 74 63 68 |.See als|o: getch|
|000037d0| 28 29 20 61 6e 64 20 67 | 65 74 63 68 65 28 29 0d |() and g|etche().|
|000037e0| 6b 65 79 28 54 29 20 3a | 20 78 31 2c 20 78 32 2c |key(T) :| x1, x2,|
|000037f0| 20 2e 2e 2e 2c 20 78 6e | 20 20 20 20 20 20 20 20 | ..., xn| |
|00003800| 20 20 20 20 20 20 20 20 | 20 67 65 6e 65 72 61 74 | | generat|
|00003810| 65 20 6b 65 79 73 20 66 | 72 6f 6d 20 74 61 62 6c |e keys f|rom tabl|
|00003820| 65 0d 0d 6b 65 79 28 54 | 29 20 67 65 6e 65 72 61 |e..key(T|) genera|
|00003830| 74 65 73 20 74 68 65 20 | 6b 65 79 73 20 69 6e 20 |tes the |keys in |
|00003840| 74 61 62 6c 65 20 54 2e | 0d 0d 45 72 72 6f 72 3a |table T.|..Error:|
|00003850| 20 20 20 20 31 32 30 20 | 20 20 20 20 54 20 6e 6f | 120 | T no|
|00003860| 74 20 74 61 62 6c 65 0d | 6c 61 75 6e 63 68 28 73 |t table.|launch(s|
|00003870| 31 2c 73 32 2c 69 29 20 | 3a 20 73 31 20 20 20 20 |1,s2,i) |: s1 |
|00003880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003890| 20 20 20 20 20 20 20 6c | 61 75 6e 63 68 20 61 70 | l|aunch ap|
|000038a0| 70 6c 69 63 61 74 69 6f | 6e 0d 0d 6c 61 75 6e 63 |plicatio|n..launc|
|000038b0| 68 28 73 31 2c 73 32 2c | 69 29 20 6c 61 75 6e 63 |h(s1,s2,|i) launc|
|000038c0| 68 65 73 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |hes the |applicat|
|000038d0| 69 6f 6e 20 6e 61 6d 65 | 64 20 73 31 20 77 69 74 |ion name|d s1 wit|
|000038e0| 68 20 61 72 67 75 6d 65 | 6e 74 0d 73 32 2e 20 20 |h argume|nt.s2. |
|000038f0| 49 66 20 69 20 69 73 20 | 30 2c 20 73 32 20 69 73 |If i is |0, s2 is|
|00003900| 20 6f 70 65 6e 65 64 20 | 28 61 73 20 69 66 20 73 | opened |(as if s|
|00003910| 32 20 77 65 72 65 20 63 | 6c 69 63 6b 2d 6c 61 75 |2 were c|lick-lau|
|00003920| 6e 63 68 65 64 20 66 72 | 6f 6d 0d 74 68 65 20 64 |nched fr|om.the d|
|00003930| 65 73 6b 74 6f 70 29 2e | 20 20 49 66 20 73 32 20 |esktop).| If s2 |
|00003940| 69 73 20 31 2c 20 73 32 | 20 69 73 20 70 72 69 6e |is 1, s2| is prin|
|00003950| 74 65 64 20 28 61 73 20 | 69 66 20 50 72 69 6e 74 |ted (as |if Print|
|00003960| 20 77 65 72 65 0d 73 65 | 6c 65 63 74 65 64 20 66 | were.se|lected f|
|00003970| 72 6f 6d 20 46 69 6e 64 | 65 72 27 73 20 46 69 6c |rom Find|er's Fil|
|00003980| 65 20 6d 65 6e 75 29 2e | 20 20 49 66 20 4d 75 6c |e menu).| If Mul|
|00003990| 74 69 46 69 6e 64 65 72 | 20 69 73 20 61 63 74 69 |tiFinder| is acti|
|000039a0| 76 65 2c 20 73 31 0d 69 | 73 20 73 75 62 2d 6c 61 |ve, s1.i|s sub-la|
|000039b0| 75 6e 63 68 65 64 20 61 | 6e 64 20 70 72 6f 67 72 |unched a|nd progr|
|000039c0| 61 6d 20 65 78 65 63 75 | 74 69 6f 6e 20 63 6f 6e |am execu|tion con|
|000039d0| 74 69 6e 75 65 73 3b 20 | 6f 74 68 65 72 77 69 73 |tinues; |otherwis|
|000039e0| 65 2c 20 70 72 6f 2d 0d | 67 72 61 6d 20 65 78 65 |e, pro-.|gram exe|
|000039f0| 63 75 74 69 6f 6e 20 74 | 65 72 6d 69 6e 61 74 65 |cution t|erminate|
|00003a00| 73 2e 20 20 6c 61 75 6e | 63 68 28 73 31 2c 73 32 |s. laun|ch(s1,s2|
|00003a10| 2c 69 29 20 66 61 69 6c | 73 20 69 66 20 74 68 65 |,i) fail|s if the|
|00003a20| 20 6c 61 75 6e 63 68 0d | 66 61 69 6c 73 2e 0d 0d | launch.|fails...|
|00003a30| 44 65 66 61 75 6c 74 3a | 20 20 69 20 20 20 20 20 |Default:| i |
|00003a40| 20 20 30 0d 0d 45 72 72 | 6f 72 73 3a 20 20 20 32 | 0..Err|ors: 2|
|00003a50| 30 35 20 20 20 20 20 69 | 20 6e 6f 74 20 30 20 6f |05 i| not 0 o|
|00003a60| 72 20 31 0d 20 20 20 20 | 20 20 20 20 20 20 33 30 |r 1. | 30|
|00003a70| 36 20 20 20 20 20 69 6e | 61 64 65 71 75 61 74 65 |6 in|adequate|
|00003a80| 20 73 70 61 63 65 20 69 | 6e 20 73 74 72 69 6e 67 | space i|n string|
|00003a90| 20 72 65 67 69 6f 6e 0d | 6c 65 66 74 28 73 31 2c | region.|left(s1,|
|00003aa0| 69 2c 73 32 29 20 3a 20 | 73 33 20 20 20 20 20 20 |i,s2) : |s3 |
|00003ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ac0| 20 20 70 6f 73 69 74 69 | 6f 6e 20 73 74 72 69 6e | positi|on strin|
|00003ad0| 67 20 61 74 20 6c 65 66 | 74 0d 0d 6c 65 66 74 28 |g at lef|t..left(|
|00003ae0| 73 31 2c 69 2c 73 32 29 | 20 70 72 6f 64 75 63 65 |s1,i,s2)| produce|
|00003af0| 73 20 61 20 73 74 72 69 | 6e 67 20 6f 66 20 73 69 |s a stri|ng of si|
|00003b00| 7a 65 20 69 20 69 6e 20 | 77 68 69 63 68 20 73 31 |ze i in |which s1|
|00003b10| 20 69 73 20 70 6f 73 69 | 2d 0d 74 69 6f 6e 65 64 | is posi|-.tioned|
|00003b20| 20 61 74 20 74 68 65 20 | 6c 65 66 74 2c 20 77 69 | at the |left, wi|
|00003b30| 74 68 20 73 32 20 75 73 | 65 64 20 66 6f 72 20 70 |th s2 us|ed for p|
|00003b40| 61 64 64 69 6e 67 20 61 | 74 20 74 68 65 20 72 69 |adding a|t the ri|
|00003b50| 67 68 74 20 61 73 0d 6e | 65 63 65 73 73 61 72 79 |ght as.n|ecessary|
|00003b60| 2e 0d 0d 44 65 66 61 75 | 6c 74 73 3a 20 69 20 20 |...Defau|lts: i |
|00003b70| 20 20 20 20 20 31 0d 20 | 20 20 20 20 20 20 20 20 | 1. | |
|00003b80| 20 73 32 20 20 20 20 20 | 20 22 20 22 0d 0d 45 72 | s2 | " "..Er|
|00003b90| 72 6f 72 73 3a 20 20 20 | 31 30 31 20 20 20 20 20 |rors: |101 |
|00003ba0| 69 20 6e 6f 74 20 69 6e | 74 65 67 65 72 0d 20 20 |i not in|teger. |
|00003bb0| 20 20 20 20 20 20 20 20 | 31 30 33 20 20 20 20 20 | |103 |
|00003bc0| 73 31 20 6f 72 20 73 32 | 20 6e 6f 74 20 73 74 72 |s1 or s2| not str|
|00003bd0| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 32 30 |ing. | 20|
|00003be0| 35 20 20 20 20 20 69 20 | 3c 20 30 0d 20 20 20 20 |5 i |< 0. |
|00003bf0| 20 20 20 20 20 20 33 30 | 37 20 20 20 20 20 69 6e | 30|7 in|
|00003c00| 61 64 65 71 75 61 74 65 | 20 73 70 61 63 65 20 69 |adequate| space i|
|00003c10| 6e 20 62 6c 6f 63 6b 20 | 72 65 67 69 6f 6e 0d 0d |n block |region..|
|00003c20| 53 65 65 20 61 6c 73 6f | 3a 20 63 65 6e 74 65 72 |See also|: center|
|00003c30| 28 29 20 61 6e 64 20 72 | 69 67 68 74 28 29 0d 6c |() and r|ight().l|
|00003c40| 69 73 74 28 69 2c 78 29 | 20 3a 20 4c 20 20 20 20 |ist(i,x)| : L |
|00003c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c70| 20 20 20 20 20 63 72 65 | 61 74 65 20 6c 69 73 74 | cre|ate list|
|00003c80| 0d 0d 6c 69 73 74 28 69 | 2c 78 29 20 70 72 6f 64 |..list(i|,x) prod|
|00003c90| 75 63 65 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |uces a l|ist of s|
|00003ca0| 69 7a 65 20 69 20 69 6e | 20 77 68 69 63 68 20 65 |ize i in| which e|
|00003cb0| 61 63 68 20 76 61 6c 75 | 65 20 69 73 20 78 2e 0d |ach valu|e is x..|
|00003cc0| 0d 44 65 66 61 75 6c 74 | 73 3a 20 69 20 20 20 20 |.Default|s: i |
|00003cd0| 20 20 20 30 0d 20 20 20 | 20 20 20 20 20 20 20 78 | 0. | x|
|00003ce0| 20 20 20 20 20 20 20 26 | 6e 75 6c 6c 0d 0d 45 72 | &|null..Er|
|00003cf0| 72 6f 72 73 3a 20 20 20 | 31 30 31 20 20 20 20 20 |rors: |101 |
|00003d00| 69 20 6e 6f 74 20 69 6e | 74 65 67 65 72 0d 20 20 |i not in|teger. |
|00003d10| 20 20 20 20 20 20 20 20 | 32 30 35 20 20 20 20 20 | |205 |
|00003d20| 69 20 3c 20 30 0d 20 20 | 20 20 20 20 20 20 20 20 |i < 0. | |
|00003d30| 33 30 37 20 20 20 20 20 | 69 6e 61 64 65 71 75 61 |307 |inadequa|
|00003d40| 74 65 20 73 70 61 63 65 | 20 69 6e 20 62 6c 6f 63 |te space| in bloc|
|00003d50| 6b 20 72 65 67 69 6f 6e | 0d 6c 6f 67 28 72 31 2c |k region|.log(r1,|
|00003d60| 72 32 29 20 3a 20 72 33 | 20 20 20 20 20 20 20 20 |r2) : r3| |
|00003d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d80| 20 20 20 20 20 20 20 20 | 20 63 6f 6d 70 75 74 65 | | compute|
|00003d90| 20 6c 6f 67 61 72 69 74 | 68 6d 0d 0d 6c 6f 67 28 | logarit|hm..log(|
|00003da0| 72 31 2c 72 32 29 20 70 | 72 6f 64 75 63 65 73 20 |r1,r2) p|roduces |
|00003db0| 74 68 65 20 6c 6f 67 61 | 72 69 74 68 6d 20 6f 66 |the loga|rithm of|
|00003dc0| 20 72 31 20 74 6f 20 74 | 68 65 20 62 61 73 65 20 | r1 to t|he base |
|00003dd0| 72 32 2e 0d 0d 44 65 66 | 61 75 6c 74 3a 20 20 72 |r2...Def|ault: r|
|00003de0| 32 20 20 20 20 20 20 65 | 0d 0d 45 72 72 6f 72 73 |2 e|..Errors|
|00003df0| 3a 20 20 20 31 30 32 20 | 20 20 20 20 72 31 20 6f |: 102 | r1 o|
|00003e00| 72 20 72 32 20 6e 6f 74 | 20 72 65 61 6c 0d 20 20 |r r2 not| real. |
|00003e10| 20 20 20 20 20 20 20 20 | 32 30 35 20 20 20 20 20 | |205 |
|00003e20| 72 31 20 3c 3d 20 30 20 | 6f 72 20 72 32 20 3c 3d |r1 <= 0 |or r2 <=|
|00003e30| 20 31 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 65 78 | 1..See |also: ex|
|00003e40| 70 28 29 0d 6d 61 6e 79 | 28 63 2c 73 2c 69 31 2c |p().many|(c,s,i1,|
|00003e50| 69 32 29 20 3a 20 69 33 | 20 20 20 20 20 20 20 20 |i2) : i3| |
|00003e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|00003e70| 6f 63 61 74 65 20 6d 61 | 6e 79 20 63 68 61 72 61 |ocate ma|ny chara|
|00003e80| 63 74 65 72 73 0d 0d 6d | 61 6e 79 28 63 2c 73 2c |cters..m|any(c,s,|
|00003e90| 69 31 2c 69 32 29 20 73 | 75 63 63 65 65 64 73 20 |i1,i2) s|ucceeds |
|00003ea0| 61 6e 64 20 70 72 6f 64 | 75 63 65 73 20 74 68 65 |and prod|uces the|
|00003eb0| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 73 20 61 | positio|n in s a|
|00003ec0| 66 74 65 72 20 74 68 65 | 0d 6c 6f 6e 67 65 73 74 |fter the|.longest|
|00003ed0| 20 69 6e 69 74 69 61 6c | 20 73 65 71 75 65 6e 63 | initial| sequenc|
|00003ee0| 65 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 20 |e of cha|racters |
|00003ef0| 69 6e 20 63 20 73 74 61 | 72 74 69 6e 67 20 61 74 |in c sta|rting at|
|00003f00| 20 73 5b 69 31 5d 2e 20 | 49 74 0d 66 61 69 6c 73 | s[i1]. |It.fails|
|00003f10| 20 69 66 20 73 5b 69 31 | 5d 20 69 73 20 6e 6f 74 | if s[i1|] is not|
|00003f20| 20 69 6e 20 63 2e 0d 0d | 44 65 66 61 75 6c 74 73 | in c...|Defaults|
|00003f30| 3a 20 73 20 20 20 20 20 | 20 20 26 73 75 62 6a 65 |: s | &subje|
|00003f40| 63 74 0d 20 20 20 20 20 | 20 20 20 20 20 69 31 20 |ct. | i1 |
|00003f50| 20 20 20 20 20 26 70 6f | 73 20 69 66 20 73 20 69 | &po|s if s i|
|00003f60| 73 20 64 65 66 61 75 6c | 74 65 64 2c 20 6f 74 68 |s defaul|ted, oth|
|00003f70| 65 72 77 69 73 65 20 31 | 0d 20 20 20 20 20 20 20 |erwise 1|. |
|00003f80| 20 20 20 69 32 20 20 20 | 20 20 20 30 0d 0d 45 72 | i2 | 0..Er|
|00003f90| 72 6f 72 73 3a 20 20 20 | 31 30 31 20 20 20 20 20 |rors: |101 |
|00003fa0| 69 31 20 6f 72 20 69 32 | 20 6e 6f 74 20 69 6e 74 |i1 or i2| not int|
|00003fb0| 65 67 65 72 0d 20 20 20 | 20 20 20 20 20 20 20 31 |eger. | 1|
|00003fc0| 30 33 20 20 20 20 20 73 | 20 6e 6f 74 20 73 74 72 |03 s| not str|
|00003fd0| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 31 30 |ing. | 10|
|00003fe0| 34 20 20 20 20 20 63 20 | 6e 6f 74 20 63 73 65 74 |4 c |not cset|
|00003ff0| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 61 6e 79 28 |..See al|so: any(|
|00004000| 29 0d 6d 61 70 28 73 31 | 2c 73 32 2c 73 33 29 20 |).map(s1|,s2,s3) |
|00004010| 3a 20 73 34 20 20 20 20 | 20 20 20 20 20 20 20 20 |: s4 | |
|00004020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004030| 20 20 20 20 20 6d 61 70 | 20 63 68 61 72 61 63 74 | map| charact|
|00004040| 65 72 73 0d 0d 6d 61 70 | 28 73 31 2c 73 32 2c 73 |ers..map|(s1,s2,s|
|00004050| 33 29 20 70 72 6f 64 75 | 63 65 73 20 61 20 73 74 |3) produ|ces a st|
|00004060| 72 69 6e 67 20 6f 66 20 | 73 69 7a 65 20 2a 73 31 |ring of |size *s1|
|00004070| 20 6f 62 74 61 69 6e 65 | 64 20 62 79 20 6d 61 70 | obtaine|d by map|
|00004080| 70 69 6e 67 0d 63 68 61 | 72 61 63 74 65 72 73 20 |ping.cha|racters |
|00004090| 6f 66 20 73 31 20 74 68 | 61 74 20 6f 63 63 75 72 |of s1 th|at occur|
|000040a0| 20 69 6e 20 73 32 20 69 | 6e 74 6f 20 63 6f 72 72 | in s2 i|nto corr|
|000040b0| 65 73 70 6f 6e 64 69 6e | 67 20 63 68 61 72 61 63 |espondin|g charac|
|000040c0| 74 65 72 73 0d 69 6e 20 | 73 33 2e 0d 0d 44 65 66 |ters.in |s3...Def|
|000040d0| 61 75 6c 74 73 3a 20 73 | 32 20 20 20 20 20 20 73 |aults: s|2 s|
|000040e0| 74 72 69 6e 67 28 26 75 | 63 61 73 65 29 0d 20 20 |tring(&u|case). |
|000040f0| 20 20 20 20 20 20 20 20 | 73 33 20 20 20 20 20 20 | |s3 |
|00004100| 73 74 72 69 6e 67 28 26 | 6c 63 61 73 65 29 0d 0d |string(&|lcase)..|
|00004110| 45 72 72 6f 72 73 3a 20 | 20 20 31 30 33 20 20 20 |Errors: | 103 |
|00004120| 20 20 73 31 2c 20 73 32 | 2c 20 6f 72 20 73 33 20 | s1, s2|, or s3 |
|00004130| 6e 6f 74 20 73 74 72 69 | 6e 67 0d 20 20 20 20 20 |not stri|ng. |
|00004140| 20 20 20 20 20 32 30 38 | 20 20 20 20 20 2a 73 32 | 208| *s2|
|00004150| 20 7e 3d 20 2a 73 33 0d | 20 20 20 20 20 20 20 20 | ~= *s3.| |
|00004160| 20 20 33 30 36 20 20 20 | 20 20 69 6e 61 64 65 71 | 306 | inadeq|
|00004170| 75 61 74 65 20 73 70 61 | 63 65 20 69 6e 20 73 74 |uate spa|ce in st|
|00004180| 72 69 6e 67 20 72 65 67 | 69 6f 6e 0d 6d 61 74 63 |ring reg|ion.matc|
|00004190| 68 28 73 31 2c 73 32 2c | 69 31 2c 69 32 29 20 3a |h(s1,s2,|i1,i2) :|
|000041a0| 20 69 33 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | i3 | |
|000041b0| 20 20 20 20 20 20 20 20 | 20 6d 61 74 63 68 20 69 | | match i|
|000041c0| 6e 69 74 69 61 6c 20 73 | 74 72 69 6e 67 0d 0d 6d |nitial s|tring..m|
|000041d0| 61 74 63 68 28 73 31 2c | 73 32 2c 69 31 2c 69 32 |atch(s1,|s2,i1,i2|
|000041e0| 29 20 70 72 6f 64 75 63 | 65 73 20 69 31 20 2b 20 |) produc|es i1 + |
|000041f0| 2a 73 31 20 69 66 20 73 | 31 20 3d 3d 20 73 32 5b |*s1 if s|1 == s2[|
|00004200| 69 31 2b 3a 2a 73 31 5d | 2c 20 62 75 74 0d 66 61 |i1+:*s1]|, but.fa|
|00004210| 69 6c 73 20 6f 74 68 65 | 72 77 69 73 65 2e 0d 0d |ils othe|rwise...|
|00004220| 44 65 66 61 75 6c 74 73 | 3a 20 73 32 20 20 20 20 |Defaults|: s2 |
|00004230| 20 20 26 73 75 62 6a 65 | 63 74 0d 20 20 20 20 20 | &subje|ct. |
|00004240| 20 20 20 20 20 69 31 20 | 20 20 20 20 20 26 70 6f | i1 | &po|
|00004250| 73 20 69 66 20 73 32 20 | 69 73 20 64 65 66 61 75 |s if s2 |is defau|
|00004260| 6c 74 65 64 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |lted, ot|herwise |
|00004270| 31 0d 20 20 20 20 20 20 | 20 20 20 20 69 32 20 20 |1. | i2 |
|00004280| 20 20 20 20 30 0d 0d 45 | 72 72 6f 72 73 3a 20 20 | 0..E|rrors: |
|00004290| 20 31 30 31 20 20 20 20 | 20 69 31 20 6f 72 20 69 | 101 | i1 or i|
|000042a0| 32 20 6e 6f 74 20 69 6e | 74 65 67 65 72 0d 20 20 |2 not in|teger. |
|000042b0| 20 20 20 20 20 20 20 20 | 31 30 33 20 20 20 20 20 | |103 |
|000042c0| 73 31 20 6f 72 20 73 32 | 20 6e 6f 74 20 73 74 72 |s1 or s2| not str|
|000042d0| 69 6e 67 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 3d |ing..See| also: =|
|000042e0| 73 0d 6d 65 6d 62 65 72 | 28 58 2c 78 29 20 3a 20 |s.member|(X,x) : |
|000042f0| 78 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x | |
|00004300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004310| 74 65 73 74 20 66 6f 72 | 20 6d 65 6d 62 65 72 73 |test for| members|
|00004320| 68 69 70 0d 0d 49 66 20 | 58 20 69 73 20 61 20 73 |hip..If |X is a s|
|00004330| 65 74 2c 20 6d 65 6d 62 | 65 72 28 58 2c 78 29 20 |et, memb|er(X,x) |
|00004340| 70 72 6f 64 75 63 65 73 | 20 58 20 69 66 20 78 20 |produces| X if x |
|00004350| 69 73 20 61 20 6d 65 6d | 62 65 72 20 6f 66 20 58 |is a mem|ber of X|
|00004360| 20 62 75 74 0d 66 61 69 | 6c 73 20 6f 74 68 65 72 | but.fai|ls other|
|00004370| 77 69 73 65 2e 20 20 49 | 66 20 58 20 69 73 20 61 |wise. I|f X is a|
|00004380| 20 74 61 62 6c 65 2c 20 | 6d 65 6d 62 65 72 28 58 | table, |member(X|
|00004390| 2c 78 29 20 70 72 6f 64 | 75 63 65 73 20 20 69 66 |,x) prod|uces if|
|000043a0| 20 78 20 69 73 0d 61 20 | 6b 65 79 20 6f 66 20 61 | x is.a |key of a|
|000043b0| 6e 20 65 6c 65 6d 65 6e | 74 20 69 6e 20 58 20 62 |n elemen|t in X b|
|000043c0| 75 74 20 66 61 69 6c 73 | 20 6f 74 68 65 72 77 69 |ut fails| otherwi|
|000043d0| 73 65 2e 0d 0d 45 72 72 | 6f 72 3a 20 20 20 20 31 |se...Err|or: 1|
|000043e0| 32 32 20 20 20 20 20 58 | 20 6e 6f 74 20 73 65 74 |22 X| not set|
|000043f0| 20 6f 72 20 74 61 62 6c | 65 0d 0d 53 65 65 20 61 | or tabl|e..See a|
|00004400| 6c 73 6f 3a 20 64 65 6c | 65 74 65 28 29 20 61 6e |lso: del|ete() an|
|00004410| 64 20 69 6e 73 65 72 74 | 28 29 0d 6d 65 73 73 61 |d insert|().messa|
|00004420| 67 65 28 73 31 2c 73 32 | 2c 73 33 29 20 3a 20 73 |ge(s1,s2|,s3) : s|
|00004430| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00004440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 65 | | pre|
|00004450| 73 65 6e 74 20 6d 65 73 | 73 61 67 65 0d 0d 6d 65 |sent mes|sage..me|
|00004460| 73 73 61 67 65 28 73 31 | 2c 73 32 2c 73 33 29 20 |ssage(s1|,s2,s3) |
|00004470| 70 72 65 73 65 6e 74 73 | 20 61 20 64 69 61 6c 6f |presents| a dialo|
|00004480| 67 20 62 6f 78 20 77 69 | 74 68 20 6d 65 73 73 61 |g box wi|th messa|
|00004490| 67 65 20 73 31 2e 20 20 | 73 32 20 69 73 0d 74 65 |ge s1. |s2 is.te|
|000044a0| 78 74 20 66 6f 72 20 74 | 68 65 20 4f 4b 20 62 75 |xt for t|he OK bu|
|000044b0| 74 74 6f 6e 20 61 6e 64 | 20 73 33 20 69 73 20 74 |tton and| s3 is t|
|000044c0| 68 65 20 74 69 74 6c 65 | 20 66 6f 72 20 74 68 65 |he title| for the|
|000044d0| 20 43 61 6e 63 65 6c 20 | 62 75 74 74 6f 6e 2e 0d | Cancel |button..|
|000044e0| 0d 44 65 66 61 75 6c 74 | 73 3a 20 73 31 20 20 20 |.Default|s: s1 |
|000044f0| 20 20 20 22 22 0d 20 20 | 20 20 20 20 20 20 20 20 | "". | |
|00004500| 73 32 20 20 20 20 20 20 | 22 22 20 28 4f 4b 20 64 |s2 |"" (OK d|
|00004510| 69 73 70 6c 61 79 65 64 | 29 0d 20 20 20 20 20 20 |isplayed|). |
|00004520| 20 20 20 20 73 33 20 20 | 20 20 20 20 22 22 20 28 | s3 | "" (|
|00004530| 6e 6f 20 43 61 6e 63 65 | 6c 20 62 75 74 74 6f 6e |no Cance|l button|
|00004540| 29 0d 0d 45 72 72 6f 72 | 3a 20 20 20 20 31 30 33 |)..Error|: 103|
|00004550| 20 20 20 20 20 73 31 2c | 20 73 32 2c 20 6f 72 20 | s1,| s2, or |
|00004560| 73 33 20 6e 6f 74 20 73 | 74 72 69 6e 67 0d 0d 53 |s3 not s|tring..S|
|00004570| 65 65 20 61 6c 73 6f 3a | 20 67 65 74 74 65 78 74 |ee also:| gettext|
|00004580| 28 29 0d 6d 6d 6f 75 74 | 28 73 29 20 3a 20 6e 20 |().mmout|(s) : n |
|00004590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045a0| 20 20 20 20 77 72 69 74 | 65 20 74 65 78 74 20 74 | writ|e text t|
|000045b0| 6f 20 61 6c 6c 6f 63 61 | 74 69 6f 6e 20 68 69 73 |o alloca|tion his|
|000045c0| 74 6f 72 79 0d 0d 6d 6d | 6f 75 74 28 73 29 20 77 |tory..mm|out(s) w|
|000045d0| 72 69 74 65 73 20 73 20 | 74 6f 20 74 68 65 20 61 |rites s |to the a|
|000045e0| 6c 6c 6f 63 61 74 69 6f | 6e 20 68 69 73 74 6f 72 |llocatio|n histor|
|000045f0| 79 20 66 69 6c 65 2e 20 | 73 20 69 73 20 67 69 76 |y file. |s is giv|
|00004600| 65 6e 20 6e 6f 0d 69 6e | 74 65 72 70 72 65 74 61 |en no.in|terpreta|
|00004610| 74 69 6f 6e 2e 20 45 78 | 70 65 72 74 20 6b 6e 6f |tion. Ex|pert kno|
|00004620| 77 6c 65 64 67 65 20 6f | 66 20 61 6c 6c 6f 63 61 |wledge o|f alloca|
|00004630| 74 69 6f 6e 20 68 69 73 | 74 6f 72 79 20 66 69 6c |tion his|tory fil|
|00004640| 65 73 20 69 73 0d 6e 65 | 65 64 65 64 20 74 6f 20 |es is.ne|eded to |
|00004650| 75 73 65 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |use this| functio|
|00004660| 6e 2e 0d 0d 45 72 72 6f | 72 73 3a 20 20 20 31 30 |n...Erro|rs: 10|
|00004670| 33 20 20 20 20 20 73 20 | 6e 6f 74 20 73 74 72 69 |3 s |not stri|
|00004680| 6e 67 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 6d 6d |ng..See |also: mm|
|00004690| 70 61 75 73 65 28 29 20 | 61 6e 64 20 6d 6d 73 68 |pause() |and mmsh|
|000046a0| 6f 77 28 29 0d 6d 6d 70 | 61 75 73 65 28 73 29 20 |ow().mmp|ause(s) |
|000046b0| 3a 20 6e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: n | |
|000046c0| 20 20 20 20 20 77 72 69 | 74 65 20 70 61 75 73 65 | wri|te pause|
|000046d0| 20 74 6f 20 61 6c 6c 6f | 63 61 74 69 6f 6e 20 68 | to allo|cation h|
|000046e0| 69 73 74 6f 72 79 0d 0d | 6d 6d 70 61 75 73 65 28 |istory..|mmpause(|
|000046f0| 73 29 20 77 72 69 74 65 | 73 20 73 20 74 6f 20 74 |s) write|s s to t|
|00004700| 68 65 20 61 6c 6c 6f 63 | 61 74 69 6f 6e 20 68 69 |he alloc|ation hi|
|00004710| 73 74 6f 72 79 20 66 69 | 6c 65 20 61 73 20 61 20 |story fi|le as a |
|00004720| 70 61 75 73 65 0d 70 6f | 69 6e 74 20 77 69 74 68 |pause.po|int with|
|00004730| 20 69 64 65 6e 74 69 66 | 69 63 61 74 69 6f 6e 20 | identif|ication |
|00004740| 73 2e 0d 0d 44 65 66 61 | 75 6c 74 73 3a 20 73 20 |s...Defa|ults: s |
|00004750| 20 20 20 20 20 20 22 70 | 72 6f 67 72 61 6d 6d 65 | "p|rogramme|
|00004760| 64 20 70 61 75 73 65 22 | 0d 0d 45 72 72 6f 72 73 |d pause"|..Errors|
|00004770| 3a 20 20 20 31 30 33 20 | 20 20 20 20 73 20 6e 6f |: 103 | s no|
|00004780| 74 20 73 74 72 69 6e 67 | 0d 0d 53 65 65 20 61 6c |t string|..See al|
|00004790| 73 6f 3a 20 6d 6d 6f 75 | 74 28 29 20 61 6e 64 20 |so: mmou|t() and |
|000047a0| 6d 6d 73 68 6f 77 28 29 | 0d 6d 6d 73 68 6f 77 28 |mmshow()|.mmshow(|
|000047b0| 78 2c 73 29 20 3a 20 6e | 20 20 20 20 20 20 20 20 |x,s) : n| |
|000047c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|000047d0| 64 72 61 77 20 69 6e 20 | 61 6c 6c 6f 63 61 74 69 |draw in |allocati|
|000047e0| 6f 6e 20 68 69 73 74 6f | 72 79 0d 0d 6d 6d 73 68 |on histo|ry..mmsh|
|000047f0| 6f 77 28 78 2c 73 29 20 | 73 70 65 63 69 66 69 65 |ow(x,s) |specifie|
|00004800| 73 20 72 65 64 72 61 77 | 69 6e 67 20 6f 66 20 78 |s redraw|ing of x|
|00004810| 20 69 6e 20 74 68 65 20 | 61 6c 6c 6f 63 61 74 69 | in the |allocati|
|00004820| 6f 6e 20 68 69 73 74 6f | 72 79 0d 66 69 6c 65 2e |on histo|ry.file.|
|00004830| 20 20 54 68 65 20 63 6f | 6c 6f 72 20 69 73 20 64 | The co|lor is d|
|00004840| 65 66 69 6e 65 64 20 62 | 79 20 73 20 61 73 20 66 |efined b|y s as f|
|00004850| 6f 6c 6c 6f 77 73 3a 0d | 0d 20 20 20 20 20 20 20 |ollows:.|. |
|00004860| 20 22 62 22 20 20 62 6c | 61 63 6b 0d 20 20 20 20 | "b" bl|ack. |
|00004870| 20 20 20 20 22 67 22 20 | 20 67 72 61 79 0d 20 20 | "g" | gray. |
|00004880| 20 20 20 20 20 20 22 77 | 22 20 20 77 68 69 74 65 | "w|" white|
|00004890| 0d 20 20 20 20 20 20 20 | 20 22 68 22 20 20 68 69 |. | "h" hi|
|000048a0| 67 68 6c 69 67 68 74 20 | 28 61 6c 73 6f 20 77 68 |ghlight |(also wh|
|000048b0| 69 74 65 29 0d 20 20 20 | 20 20 20 20 20 22 72 22 |ite). | "r"|
|000048c0| 20 20 6e 6f 72 6d 61 6c | 20 63 6f 6c 6f 72 0d 0d | normal| color..|
|000048d0| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 6d 6d 6f 75 74 |.See als|o: mmout|
|000048e0| 28 29 20 61 6e 64 20 6d | 6d 70 61 75 73 65 28 29 |() and m|mpause()|
|000048f0| 0d 6d 6f 76 65 28 69 29 | 20 3a 20 73 20 20 20 20 |.move(i)| : s |
|00004900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004920| 20 20 20 6d 6f 76 65 20 | 69 6e 20 26 73 75 62 65 | move |in &sube|
|00004930| 63 74 0d 0d 6d 6f 76 65 | 28 69 29 20 70 72 6f 64 |ct..move|(i) prod|
|00004940| 75 63 65 73 20 26 73 75 | 62 6a 65 63 74 5b 26 70 |uces &su|bject[&p|
|00004950| 6f 73 3a 26 70 6f 73 20 | 2b 20 69 5d 20 61 6e 64 |os:&pos |+ i] and|
|00004960| 20 61 73 73 69 67 6e 73 | 20 69 20 2b 20 26 70 6f | assigns| i + &po|
|00004970| 73 20 74 6f 0d 26 70 6f | 73 2c 20 62 75 74 20 66 |s to.&po|s, but f|
|00004980| 61 69 6c 73 20 69 66 20 | 69 20 69 73 20 6f 75 74 |ails if |i is out|
|00004990| 20 6f 66 20 72 61 6e 67 | 65 2e 20 49 74 20 72 65 | of rang|e. It re|
|000049a0| 76 65 72 73 65 73 20 74 | 68 65 20 61 73 73 69 67 |verses t|he assig|
|000049b0| 6e 6d 65 6e 74 0d 74 6f | 20 26 70 6f 73 20 69 66 |nment.to| &pos if|
|000049c0| 20 69 74 20 69 73 20 72 | 65 73 75 6d 65 64 2e 0d | it is r|esumed..|
|000049d0| 0d 45 72 72 6f 72 3a 20 | 20 20 20 31 30 31 20 20 |.Error: | 101 |
|000049e0| 20 20 20 69 20 6e 6f 74 | 20 69 6e 74 65 67 65 72 | i not| integer|
|000049f0| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 74 61 62 28 |..See al|so: tab(|
|00004a00| 29 0d 6e 61 6d 65 28 78 | 29 20 3a 20 73 20 20 20 |).name(x|) : s |
|00004a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a30| 20 20 20 20 20 20 20 70 | 72 6f 64 75 63 65 20 6e | p|roduce n|
|00004a40| 61 6d 65 0d 0d 6e 61 6d | 65 28 78 29 20 70 72 6f |ame..nam|e(x) pro|
|00004a50| 64 75 63 65 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |duces th|e name o|
|00004a60| 66 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 78 |f the va|riable x|
|00004a70| 2e 20 20 49 66 20 78 20 | 69 73 20 61 6e 20 69 64 |. If x |is an id|
|00004a80| 65 6e 74 69 66 2d 0d 69 | 65 72 20 6f 72 20 61 20 |entif-.i|er or a |
|00004a90| 6b 65 79 77 6f 72 64 20 | 74 68 61 74 20 69 73 20 |keyword |that is |
|00004aa0| 61 20 76 61 72 69 61 62 | 6c 65 2c 20 74 68 65 20 |a variab|le, the |
|00004ab0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 69 64 65 6e |name of |the iden|
|00004ac0| 74 69 66 69 65 72 0d 6f | 72 20 6b 65 79 77 6f 72 |tifier.o|r keywor|
|00004ad0| 64 20 69 73 20 70 72 6f | 64 75 63 65 64 2e 20 20 |d is pro|duced. |
|00004ae0| 49 66 20 78 20 69 73 20 | 61 20 72 65 63 6f 72 64 |If x is |a record|
|00004af0| 20 66 69 65 6c 64 20 72 | 65 66 65 72 65 6e 63 65 | field r|eference|
|00004b00| 2c 20 74 68 65 0d 72 65 | 63 6f 72 64 20 74 79 70 |, the.re|cord typ|
|00004b10| 65 20 61 6e 64 20 66 69 | 65 6c 64 20 6e 61 6d 65 |e and fi|eld name|
|00004b20| 20 61 72 65 20 70 72 6f | 64 75 63 65 64 20 77 69 | are pro|duced wi|
|00004b30| 74 68 20 61 20 73 65 70 | 61 72 61 74 69 6e 67 20 |th a sep|arating |
|00004b40| 70 65 72 69 6f 64 2e 0d | 49 66 20 78 20 69 73 20 |period..|If x is |
|00004b50| 61 20 73 74 72 69 6e 67 | 2c 20 74 68 65 20 6e 61 |a string|, the na|
|00004b60| 6d 65 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |me of th|e string|
|00004b70| 20 61 6e 64 20 74 68 65 | 20 73 75 62 73 63 72 69 | and the| subscri|
|00004b80| 70 74 20 72 61 6e 67 65 | 0d 61 72 65 20 73 68 6f |pt range|.are sho|
|00004b90| 77 6e 2e 20 20 49 66 20 | 78 20 69 73 20 61 20 73 |wn. If |x is a s|
|00004ba0| 75 62 73 63 72 69 70 74 | 65 64 20 6c 69 73 74 20 |ubscript|ed list |
|00004bb0| 6f 72 20 74 61 62 6c 65 | 2c 20 74 68 65 20 74 79 |or table|, the ty|
|00004bc0| 70 65 20 6e 61 6d 65 0d | 66 6f 6c 6c 6f 77 65 64 |pe name.|followed|
|00004bd0| 20 62 79 20 74 68 65 20 | 73 75 62 73 63 72 69 70 | by the |subscrip|
|00004be0| 74 69 6e 67 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |ting exp|ression |
|00004bf0| 69 73 20 70 72 6f 64 75 | 63 65 64 2e 0d 0d 45 72 |is produ|ced...Er|
|00004c00| 72 6f 72 3a 20 20 20 20 | 31 31 31 20 20 20 20 20 |ror: |111 |
|00004c10| 78 20 6e 6f 74 20 61 20 | 76 61 72 69 61 62 6c 65 |x not a |variable|
|00004c20| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 76 61 72 69 |..See al|so: vari|
|00004c30| 61 62 6c 65 28 29 0d 6e | 75 6d 65 72 69 63 28 78 |able().n|umeric(x|
|00004c40| 29 20 3a 20 4e 20 20 20 | 20 20 20 20 20 20 20 20 |) : N | |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c60| 20 20 20 20 20 20 63 6f | 6e 76 65 72 74 20 74 6f | co|nvert to|
|00004c70| 20 6e 75 6d 65 72 69 63 | 0d 0d 6e 75 6d 65 72 69 | numeric|..numeri|
|00004c80| 63 28 78 29 20 70 72 6f | 64 75 63 65 73 20 61 6e |c(x) pro|duces an|
|00004c90| 20 69 6e 74 65 67 65 72 | 20 6f 72 20 72 65 61 6c | integer| or real|
|00004ca0| 20 6e 75 6d 62 65 72 20 | 72 65 73 75 6c 74 69 6e | number |resultin|
|00004cb0| 67 20 66 72 6f 6d 20 63 | 6f 6e 2d 0d 76 65 72 74 |g from c|on-.vert|
|00004cc0| 69 6e 67 20 78 2c 20 62 | 75 74 20 66 61 69 6c 73 |ing x, b|ut fails|
|00004cd0| 20 69 66 20 74 68 65 20 | 63 6f 6e 76 65 72 73 69 | if the |conversi|
|00004ce0| 6f 6e 20 69 73 20 6e 6f | 74 20 70 6f 73 73 69 62 |on is no|t possib|
|00004cf0| 6c 65 2e 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 69 |le...See| also: i|
|00004d00| 6e 74 65 67 65 72 28 29 | 20 61 6e 64 20 72 65 61 |nteger()| and rea|
|00004d10| 6c 28 29 0d 6f 70 65 6e | 28 73 31 2c 73 32 29 20 |l().open|(s1,s2) |
|00004d20| 3a 20 66 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: f | |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 70 65 6e | | open|
|00004d50| 20 66 69 6c 65 0d 0d 6f | 70 65 6e 28 73 31 2c 73 | file..o|pen(s1,s|
|00004d60| 32 29 20 70 72 6f 64 75 | 63 65 73 20 61 20 66 69 |2) produ|ces a fi|
|00004d70| 6c 65 20 72 65 73 75 6c | 74 69 6e 67 20 66 72 6f |le resul|ting fro|
|00004d80| 6d 20 6f 70 65 6e 69 6e | 67 20 73 31 20 61 63 63 |m openin|g s1 acc|
|00004d90| 6f 72 64 69 6e 67 0d 74 | 6f 20 6f 70 74 69 6f 6e |ording.t|o option|
|00004da0| 73 20 67 69 76 65 6e 20 | 69 6e 20 73 32 2c 20 62 |s given |in s2, b|
|00004db0| 75 74 20 66 61 69 6c 73 | 20 69 66 20 74 68 65 20 |ut fails| if the |
|00004dc0| 66 69 6c 65 20 63 61 6e | 6e 6f 74 20 62 65 20 6f |file can|not be o|
|00004dd0| 70 65 6e 65 64 2e 0d 54 | 68 65 20 6f 70 74 69 6f |pened..T|he optio|
|00004de0| 6e 73 20 61 72 65 3a 0d | 0d 20 20 20 20 20 20 20 |ns are:.|. |
|00004df0| 20 63 68 61 72 61 63 74 | 65 72 65 66 66 65 63 74 | charact|ereffect|
|00004e00| 0d 20 20 20 20 20 20 20 | 20 72 20 20 20 20 6f 70 |. | r op|
|00004e10| 65 6e 20 66 6f 72 20 72 | 65 61 64 69 6e 67 0d 20 |en for r|eading. |
|00004e20| 20 20 20 20 20 20 20 77 | 20 20 20 20 6f 70 65 6e | w| open|
|00004e30| 20 66 6f 72 20 77 72 69 | 74 69 6e 67 0d 20 20 20 | for wri|ting. |
|00004e40| 20 20 20 20 20 61 20 20 | 20 20 6f 70 65 6e 20 66 | a | open f|
|00004e50| 6f 72 20 77 72 69 74 69 | 6e 67 20 69 6e 20 61 70 |or writi|ng in ap|
|00004e60| 70 65 6e 64 20 6d 6f 64 | 65 0d 20 20 20 20 20 20 |pend mod|e. |
|00004e70| 20 20 63 20 20 20 20 63 | 72 65 61 74 65 0d 20 20 | c c|reate. |
|00004e80| 20 20 20 20 20 20 62 20 | 20 20 20 6f 70 65 6e 20 | b | open |
|00004e90| 66 6f 72 20 72 65 61 64 | 69 6e 67 20 61 6e 64 20 |for read|ing and |
|00004ea0| 77 72 69 74 69 6e 67 0d | 20 20 20 20 20 20 20 20 |writing.| |
|00004eb0| 74 20 20 20 20 74 72 61 | 6e 73 6c 61 74 65 20 72 |t tra|nslate r|
|00004ec0| 65 74 75 72 6e 73 20 74 | 6f 20 6c 69 6e 65 66 65 |eturns t|o linefe|
|00004ed0| 65 64 73 0d 20 20 20 20 | 20 20 20 20 75 20 20 20 |eds. | u |
|00004ee0| 20 64 6f 20 6e 6f 74 20 | 74 72 61 6e 73 6c 61 74 | do not |translat|
|00004ef0| 65 20 72 65 74 75 72 6e | 73 20 74 6f 20 6c 69 6e |e return|s to lin|
|00004f00| 65 66 65 65 64 73 0d 0d | 0d 54 68 65 20 64 65 66 |efeeds..|.The def|
|00004f10| 61 75 6c 74 20 6d 6f 64 | 65 20 69 73 20 74 6f 20 |ault mod|e is to |
|00004f20| 74 72 61 6e 73 6c 61 74 | 65 20 72 65 74 75 72 6e |translat|e return|
|00004f30| 73 20 74 6f 20 6c 69 6e | 65 66 65 65 64 73 20 6f |s to lin|efeeds o|
|00004f40| 6e 20 69 6e 70 75 74 0d | 61 6e 64 20 74 6f 20 74 |n input.|and to t|
|00004f50| 72 61 6e 73 6c 61 74 65 | 20 6c 69 6e 65 66 65 65 |ranslate| linefee|
|00004f60| 64 73 20 74 6f 20 72 65 | 74 75 72 6e 73 20 6f 6e |ds to re|turns on|
|00004f70| 20 6f 75 74 70 75 74 2e | 20 20 54 68 65 0d 75 6e | output.| The.un|
|00004f80| 74 72 61 6e 73 6c 61 74 | 65 64 20 6d 6f 64 65 20 |translat|ed mode |
|00004f90| 73 68 6f 75 6c 64 20 62 | 65 20 75 73 65 64 20 77 |should b|e used w|
|00004fa0| 68 65 6e 20 72 65 61 64 | 69 6e 67 20 61 6e 64 20 |hen read|ing and |
|00004fb0| 77 72 69 74 69 6e 67 20 | 62 69 6e 61 72 79 0d 66 |writing |binary.f|
|00004fc0| 69 6c 65 73 2e 0d 0d 44 | 65 66 61 75 6c 74 3a 20 |iles...D|efault: |
|00004fd0| 20 73 32 20 20 20 20 20 | 20 22 72 22 0d 0d 45 72 | s2 | "r"..Er|
|00004fe0| 72 6f 72 73 3a 20 20 20 | 31 30 33 20 20 20 20 20 |rors: |103 |
|00004ff0| 73 31 20 6f 72 20 73 32 | 20 6e 6f 74 20 73 74 72 |s1 or s2| not str|
|00005000| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 32 30 |ing. | 20|
|00005010| 39 20 20 20 20 20 69 6e | 76 61 6c 69 64 20 6f 70 |9 in|valid op|
|00005020| 74 69 6f 6e 0d 0d 53 65 | 65 20 61 6c 73 6f 3a 20 |tion..Se|e also: |
|00005030| 63 6c 6f 73 65 28 29 0d | 6f 72 64 28 73 29 20 3a |close().|ord(s) :|
|00005040| 20 69 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | i | |
|00005050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005060| 20 20 20 20 20 20 20 20 | 20 20 70 72 6f 64 75 63 | | produc|
|00005070| 65 20 6f 72 64 69 6e 61 | 6c 0d 0d 6f 72 64 28 73 |e ordina|l..ord(s|
|00005080| 29 20 70 72 6f 64 75 63 | 65 73 20 61 6e 20 69 6e |) produc|es an in|
|00005090| 74 65 67 65 72 20 28 6f | 72 64 69 6e 61 6c 29 20 |teger (o|rdinal) |
|000050a0| 62 65 74 77 65 65 6e 20 | 30 20 61 6e 64 20 32 35 |between |0 and 25|
|000050b0| 35 20 74 68 61 74 20 69 | 73 0d 74 68 65 20 69 6e |5 that i|s.the in|
|000050c0| 74 65 72 6e 61 6c 20 72 | 65 70 72 65 73 65 6e 74 |ternal r|epresent|
|000050d0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6f 6e 65 |ation of| the one|
|000050e0| 2d 63 68 61 72 61 63 74 | 65 72 20 73 74 72 69 6e |-charact|er strin|
|000050f0| 67 20 73 2e 0d 0d 45 72 | 72 6f 72 73 3a 20 20 20 |g s...Er|rors: |
|00005100| 31 30 33 20 20 20 20 20 | 73 20 6e 6f 74 20 73 74 |103 |s not st|
|00005110| 72 69 6e 67 0d 20 20 20 | 20 20 20 20 20 20 20 32 |ring. | 2|
|00005120| 30 35 20 20 20 20 20 2a | 73 20 6e 6f 74 20 31 0d |05 *|s not 1.|
|00005130| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 63 68 61 72 28 |.See als|o: char(|
|00005140| 29 0d 70 6f 70 28 4c 29 | 20 3a 20 78 20 20 20 20 |).pop(L)| : x |
|00005150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005170| 20 20 20 20 20 20 70 6f | 70 20 66 72 6f 6d 20 6c | po|p from l|
|00005180| 69 73 74 0d 0d 70 6f 70 | 28 4c 29 20 70 72 6f 64 |ist..pop|(L) prod|
|00005190| 75 63 65 73 20 74 68 65 | 20 6c 65 66 74 6d 6f 73 |uces the| leftmos|
|000051a0| 74 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 4c 20 61 |t elemen|t of L a|
|000051b0| 6e 64 20 72 65 6d 6f 76 | 65 73 20 69 74 20 66 72 |nd remov|es it fr|
|000051c0| 6f 6d 20 4c 2c 0d 62 75 | 74 20 66 61 69 6c 73 20 |om L,.bu|t fails |
|000051d0| 69 66 20 4c 20 69 73 20 | 65 6d 70 74 79 2e 20 70 |if L is |empty. p|
|000051e0| 6f 70 20 69 73 20 61 20 | 73 79 6e 6f 6e 79 6d 20 |op is a |synonym |
|000051f0| 66 6f 72 20 67 65 74 2e | 0d 0d 45 72 72 6f 72 3a |for get.|..Error:|
|00005200| 20 20 20 20 31 30 38 20 | 20 20 20 20 4c 20 6e 6f | 108 | L no|
|00005210| 74 20 6c 69 73 74 0d 0d | 53 65 65 20 61 6c 73 6f |t list..|See also|
|00005220| 3a 20 67 65 74 28 29 2c | 20 70 75 6c 6c 28 29 2c |: get(),| pull(),|
|00005230| 20 70 75 73 68 28 29 2c | 20 61 6e 64 20 70 75 74 | push(),| and put|
|00005240| 0d 70 6f 73 28 69 31 29 | 20 3a 20 69 32 20 20 20 |.pos(i1)| : i2 |
|00005250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005260| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 65 73 74 | | test|
|00005270| 20 73 63 61 6e 6e 69 6e | 67 20 70 6f 73 69 74 69 | scannin|g positi|
|00005280| 6f 6e 0d 0d 70 6f 73 28 | 69 31 29 20 70 72 6f 64 |on..pos(|i1) prod|
|00005290| 75 63 65 73 20 26 70 6f | 73 20 69 66 20 26 70 6f |uces &po|s if &po|
|000052a0| 73 20 3d 20 69 31 2c 20 | 62 75 74 20 66 61 69 6c |s = i1, |but fail|
|000052b0| 73 20 6f 74 68 65 72 77 | 69 73 65 2e 0d 0d 45 72 |s otherw|ise...Er|
|000052c0| 72 6f 72 3a 20 20 20 20 | 31 30 31 20 20 20 20 20 |ror: |101 |
|000052d0| 69 31 20 6e 6f 74 20 69 | 6e 74 65 67 65 72 0d 0d |i1 not i|nteger..|
|000052e0| 53 65 65 20 61 6c 73 6f | 3a 20 26 70 6f 73 20 61 |See also|: &pos a|
|000052f0| 6e 64 20 26 73 75 62 6a | 65 63 74 0d 70 72 6f 63 |nd &subj|ect.proc|
|00005300| 28 78 2c 69 29 20 3a 20 | 70 20 20 20 20 20 20 20 |(x,i) : |p |
|00005310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005320| 20 20 20 20 20 20 20 20 | 20 63 6f 6e 76 65 72 74 | | convert|
|00005330| 20 74 6f 20 70 72 6f 63 | 65 64 75 72 65 0d 0d 70 | to proc|edure..p|
|00005340| 72 6f 63 28 78 2c 69 29 | 20 70 72 6f 64 75 63 65 |roc(x,i)| produce|
|00005350| 73 20 61 20 70 72 6f 63 | 65 64 75 72 65 20 63 6f |s a proc|edure co|
|00005360| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 74 |rrespond|ing to t|
|00005370| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 78 2c 0d 62 |he value| of x,.b|
|00005380| 75 74 20 66 61 69 6c 73 | 20 69 66 20 78 20 64 6f |ut fails| if x do|
|00005390| 65 73 20 6e 6f 74 20 63 | 6f 72 72 65 73 70 6f 6e |es not c|orrespon|
|000053a0| 64 20 74 6f 20 61 20 70 | 72 6f 63 65 64 75 72 65 |d to a p|rocedure|
|000053b0| 2e 20 20 49 66 20 78 20 | 69 73 20 74 68 65 0d 73 |. If x |is the.s|
|000053c0| 74 72 69 6e 67 20 6e 61 | 6d 65 20 6f 66 20 61 6e |tring na|me of an|
|000053d0| 20 6f 70 65 72 61 74 6f | 72 2c 20 69 20 69 73 20 | operato|r, i is |
|000053e0| 75 73 65 64 20 74 6f 20 | 64 69 73 74 69 6e 67 75 |used to |distingu|
|000053f0| 69 73 68 20 62 65 74 77 | 65 65 6e 20 70 72 65 2d |ish betw|een pre-|
|00005400| 0d 66 69 78 20 61 6e 64 | 20 69 6e 66 69 78 20 6f |.fix and| infix o|
|00005410| 70 65 72 61 74 6f 72 73 | 20 77 69 74 68 20 74 68 |perators| with th|
|00005420| 65 20 73 61 6d 65 20 73 | 79 6d 62 6f 6c 73 3a 20 |e same s|ymbols: |
|00005430| 69 20 3d 20 31 20 64 65 | 73 69 67 6e 61 74 65 73 |i = 1 de|signates|
|00005440| 0d 75 6e 61 72 79 20 28 | 70 72 65 66 69 78 29 20 |.unary (|prefix) |
|00005450| 6f 70 65 72 61 74 6f 72 | 73 2c 20 77 68 69 6c 65 |operator|s, while|
|00005460| 20 69 20 3d 20 32 20 64 | 65 73 69 67 6e 61 74 65 | i = 2 d|esignate|
|00005470| 73 20 62 69 6e 61 72 79 | 20 28 69 6e 66 69 78 29 |s binary| (infix)|
|00005480| 0d 6f 70 65 72 61 74 6f | 72 73 2c 20 61 6e 64 20 |.operato|rs, and |
|00005490| 69 20 3d 20 33 20 64 65 | 73 69 67 6e 61 74 65 73 |i = 3 de|signates|
|000054a0| 20 74 65 72 6e 61 72 79 | 20 28 64 69 73 74 72 69 | ternary| (distri|
|000054b0| 62 75 74 65 64 29 20 6f | 70 65 72 61 74 6f 72 73 |buted) o|perators|
|000054c0| 2e 0d 0d 44 65 66 61 75 | 6c 74 3a 20 20 69 20 20 |...Defau|lt: i |
|000054d0| 20 20 20 20 20 31 0d 0d | 45 72 72 6f 72 73 3a 20 | 1..|Errors: |
|000054e0| 20 20 31 30 31 20 20 20 | 20 20 69 20 6e 6f 74 20 | 101 | i not |
|000054f0| 69 6e 74 65 67 65 72 0d | 20 20 20 20 20 20 20 20 |integer.| |
|00005500| 20 20 32 30 35 20 20 20 | 20 20 69 20 6e 6f 74 20 | 205 | i not |
|00005510| 31 2c 20 32 2c 20 6f 72 | 20 33 0d 70 75 6c 6c 28 |1, 2, or| 3.pull(|
|00005520| 4c 29 20 3a 20 78 20 20 | 20 20 20 20 20 20 20 20 |L) : x | |
|00005530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 75 | | pu|
|00005550| 6c 6c 20 66 72 6f 6d 20 | 6c 69 73 74 0d 0d 70 75 |ll from |list..pu|
|00005560| 6c 6c 28 4c 29 20 70 72 | 6f 64 75 63 65 73 20 74 |ll(L) pr|oduces t|
|00005570| 68 65 20 72 69 67 68 74 | 6d 6f 73 74 20 65 6c 65 |he right|most ele|
|00005580| 6d 65 6e 74 20 6f 66 20 | 4c 20 61 6e 64 20 72 65 |ment of |L and re|
|00005590| 6d 6f 76 65 73 20 69 74 | 20 66 72 6f 6d 0d 4c 2c |moves it| from.L,|
|000055a0| 20 62 75 74 20 66 61 69 | 6c 73 20 69 66 20 4c 20 | but fai|ls if L |
|000055b0| 69 73 20 65 6d 70 74 79 | 2e 0d 0d 45 72 72 6f 72 |is empty|...Error|
|000055c0| 3a 20 20 20 20 31 30 38 | 20 20 20 20 20 4c 20 6e |: 108| L n|
|000055d0| 6f 74 20 6c 69 73 74 0d | 0d 53 65 65 20 61 6c 73 |ot list.|.See als|
|000055e0| 6f 3a 20 67 65 74 28 29 | 2c 20 70 6f 70 28 29 2c |o: get()|, pop(),|
|000055f0| 20 70 75 73 68 28 29 2c | 20 61 6e 64 20 70 75 74 | push(),| and put|
|00005600| 28 29 0d 70 75 73 68 28 | 4c 2c 78 29 20 3a 20 4c |().push(|L,x) : L|
|00005610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005630| 20 20 20 20 20 20 70 75 | 73 68 20 6f 6e 74 6f 20 | pu|sh onto |
|00005640| 6c 69 73 74 0d 0d 70 75 | 73 68 28 4c 2c 78 29 20 |list..pu|sh(L,x) |
|00005650| 61 64 64 73 20 78 20 74 | 6f 20 74 68 65 20 6c 65 |adds x t|o the le|
|00005660| 66 74 20 65 6e 64 20 6f | 66 20 4c 20 61 6e 64 20 |ft end o|f L and |
|00005670| 70 72 6f 64 75 63 65 73 | 20 4c 2e 0d 0d 45 72 72 |produces| L...Err|
|00005680| 6f 72 73 3a 20 20 20 31 | 30 38 20 20 20 20 20 4c |ors: 1|08 L|
|00005690| 20 6e 6f 74 20 6c 69 73 | 74 0d 20 20 20 20 20 20 | not lis|t. |
|000056a0| 20 20 20 20 33 30 37 20 | 20 20 20 20 69 6e 61 64 | 307 | inad|
|000056b0| 65 71 75 61 74 65 20 73 | 70 61 63 65 20 69 6e 20 |equate s|pace in |
|000056c0| 62 6c 6f 63 6b 20 72 65 | 67 69 6f 6e 0d 0d 53 65 |block re|gion..Se|
|000056d0| 65 20 61 6c 73 6f 3a 20 | 67 65 74 28 29 2c 20 70 |e also: |get(), p|
|000056e0| 6f 70 28 29 2c 20 70 75 | 6c 6c 28 29 2c 20 61 6e |op(), pu|ll(), an|
|000056f0| 64 20 70 75 74 28 29 0d | 70 75 74 28 4c 2c 78 29 |d put().|put(L,x)|
|00005700| 20 3a 20 4c 20 20 20 20 | 20 20 20 20 20 20 20 20 | : L | |
|00005710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005720| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 75 74 20 | | put |
|00005730| 6f 6e 74 6f 20 6c 69 73 | 74 0d 0d 70 75 74 28 4c |onto lis|t..put(L|
|00005740| 2c 78 29 20 70 72 6f 64 | 75 63 65 73 20 4c 20 61 |,x) prod|uces L a|
|00005750| 6e 64 20 61 64 64 73 20 | 78 20 74 6f 20 74 68 65 |nd adds |x to the|
|00005760| 20 72 69 67 68 74 20 65 | 6e 64 20 6f 66 20 4c 20 | right e|nd of L |
|00005770| 61 6e 64 20 70 72 6f 64 | 75 63 65 73 0d 4c 2e 0d |and prod|uces.L..|
|00005780| 0d 45 72 72 6f 72 73 3a | 20 20 20 31 30 38 20 20 |.Errors:| 108 |
|00005790| 20 20 20 4c 20 6e 6f 74 | 20 6c 69 73 74 0d 20 20 | L not| list. |
|000057a0| 20 20 20 20 20 20 20 20 | 33 30 37 20 20 20 20 20 | |307 |
|000057b0| 69 6e 61 64 65 71 75 61 | 74 65 20 73 70 61 63 65 |inadequa|te space|
|000057c0| 20 69 6e 20 62 6c 6f 63 | 6b 20 72 65 67 69 6f 6e | in bloc|k region|
|000057d0| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 67 65 74 28 |..See al|so: get(|
|000057e0| 29 2c 20 70 6f 70 28 29 | 2c 20 70 75 6c 6c 28 29 |), pop()|, pull()|
|000057f0| 2c 20 61 6e 64 20 70 75 | 73 68 28 29 0d 70 75 74 |, and pu|sh().put|
|00005800| 66 69 6c 65 28 73 31 2c | 73 32 2c 73 33 29 20 3a |file(s1,|s2,s3) :|
|00005810| 20 73 34 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | s4 | |
|00005820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005830| 20 67 65 74 20 66 69 6c | 65 20 6e 61 6d 65 0d 0d | get fil|e name..|
|00005840| 70 75 74 66 69 6c 65 28 | 73 31 2c 73 32 2c 73 33 |putfile(|s1,s2,s3|
|00005850| 29 20 70 65 72 66 6f 72 | 6d 73 20 61 20 50 75 74 |) perfor|ms a Put|
|00005860| 20 46 69 6c 65 20 44 69 | 61 6c 6f 67 20 66 6f 72 | File Di|alog for|
|00005870| 20 66 6f 6c 64 65 72 20 | 73 33 20 77 69 74 68 0d | folder |s3 with.|
|00005880| 73 31 20 64 69 73 70 6c | 61 79 65 64 20 61 73 20 |s1 displ|ayed as |
|00005890| 61 20 75 73 65 72 20 70 | 72 6f 6d 70 74 2e 20 73 |a user p|rompt. s|
|000058a0| 32 20 69 73 20 64 69 73 | 70 6c 61 79 65 64 20 69 |2 is dis|played i|
|000058b0| 6e 20 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 0d |n the fi|le name.|
|000058c0| 62 6f 78 20 61 73 20 74 | 68 65 20 60 60 73 75 67 |box as t|he ``sug|
|000058d0| 67 65 73 74 65 64 27 27 | 20 66 69 6c 65 20 6e 61 |gested''| file na|
|000058e0| 6d 65 2e 20 20 70 75 74 | 66 69 6c 65 28 73 31 2c |me. put|file(s1,|
|000058f0| 73 32 2c 73 33 29 20 72 | 65 74 75 72 6e 73 0d 74 |s2,s3) r|eturns.t|
|00005900| 68 65 20 74 68 65 20 66 | 75 6c 6c 20 70 61 74 68 |he the f|ull path|
|00005910| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 66 69 6c | name of| the fil|
|00005920| 65 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 74 |e specif|ied by t|
|00005930| 68 65 20 75 73 65 72 2e | 20 49 74 0d 66 61 69 6c |he user.| It.fail|
|00005940| 73 20 69 66 20 74 68 65 | 20 75 73 65 72 20 73 65 |s if the| user se|
|00005950| 6c 65 63 74 73 20 43 61 | 6e 63 65 6c 2e 20 20 54 |lects Ca|ncel. T|
|00005960| 68 65 20 73 65 6c 65 63 | 74 65 64 20 66 69 6c 65 |he selec|ted file|
|00005970| 20 69 73 20 6e 6f 74 0d | 63 72 65 61 74 65 64 20 | is not.|created |
|00005980| 6f 72 20 6f 70 65 6e 65 | 64 3b 20 6f 6e 6c 79 20 |or opene|d; only |
|00005990| 69 74 73 20 70 61 74 68 | 20 6e 61 6d 65 20 69 73 |its path| name is|
|000059a0| 20 72 65 74 75 72 6e 65 | 64 2e 0d 0d 44 65 66 61 | returne|d...Defa|
|000059b0| 75 6c 74 3a 20 20 73 33 | 20 20 20 20 20 20 63 75 |ult: s3| cu|
|000059c0| 72 72 65 6e 74 20 77 6f | 72 6b 69 6e 67 20 66 6f |rrent wo|rking fo|
|000059d0| 6c 64 65 72 0d 0d 45 72 | 72 6f 72 73 3a 20 20 20 |lder..Er|rors: |
|000059e0| 31 30 33 20 20 20 20 20 | 73 31 2c 20 73 32 2c 20 |103 |s1, s2, |
|000059f0| 6f 72 20 73 33 20 6e 6f | 74 20 73 74 72 69 6e 67 |or s3 no|t string|
|00005a00| 0d 20 20 20 20 20 20 20 | 20 20 20 33 30 36 20 20 |. | 306 |
|00005a10| 20 20 20 69 6e 61 64 65 | 71 75 61 74 65 20 73 70 | inade|quate sp|
|00005a20| 61 63 65 20 69 6e 20 73 | 74 72 69 6e 67 20 72 65 |ace in s|tring re|
|00005a30| 67 69 6f 6e 0d 0d 20 20 | 20 20 20 20 20 20 67 65 |gion.. | ge|
|00005a40| 74 66 69 6c 65 28 29 0d | 72 65 61 64 28 66 29 20 |tfile().|read(f) |
|00005a50| 3a 20 73 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: s | |
|00005a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a80| 72 65 61 64 20 6c 69 6e | 65 0d 0d 72 65 61 64 28 |read lin|e..read(|
|00005a90| 66 29 20 70 72 6f 64 75 | 63 65 73 20 74 68 65 20 |f) produ|ces the |
|00005aa0| 6e 65 78 74 20 6c 69 6e | 65 20 66 72 6f 6d 20 66 |next lin|e from f|
|00005ab0| 2c 20 62 75 74 20 66 61 | 69 6c 73 20 6f 6e 20 65 |, but fa|ils on e|
|00005ac0| 6e 64 20 6f 66 20 66 69 | 6c 65 2e 0d 0d 44 65 66 |nd of fi|le...Def|
|00005ad0| 61 75 6c 74 3a 20 20 66 | 20 20 20 20 20 20 20 26 |ault: f| &|
|00005ae0| 69 6e 70 75 74 0d 0d 45 | 72 72 6f 72 73 3a 20 20 |input..E|rrors: |
|00005af0| 20 31 30 35 20 20 20 20 | 20 66 20 6e 6f 74 20 66 | 105 | f not f|
|00005b00| 69 6c 65 0d 20 20 20 20 | 20 20 20 20 20 20 32 31 |ile. | 21|
|00005b10| 32 20 20 20 20 20 66 20 | 6e 6f 74 20 6f 70 65 6e |2 f |not open|
|00005b20| 20 66 6f 72 20 72 65 61 | 64 69 6e 67 0d 20 20 20 | for rea|ding. |
|00005b30| 20 20 20 20 20 20 20 33 | 30 36 20 20 20 20 20 69 | 3|06 i|
|00005b40| 6e 61 64 65 71 75 61 74 | 65 20 73 70 61 63 65 20 |nadequat|e space |
|00005b50| 69 6e 20 73 74 72 69 6e | 67 20 72 65 67 69 6f 6e |in strin|g region|
|00005b60| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 72 65 61 64 |..See al|so: read|
|00005b70| 73 28 29 0d 72 65 61 64 | 73 28 66 2c 69 29 20 3a |s().read|s(f,i) :|
|00005b80| 20 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | s | |
|00005b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ba0| 20 20 20 20 20 20 20 20 | 20 20 72 65 61 64 20 73 | | read s|
|00005bb0| 74 72 69 6e 67 0d 0d 72 | 65 61 64 73 28 66 2c 69 |tring..r|eads(f,i|
|00005bc0| 29 20 70 72 6f 64 75 63 | 65 73 20 61 20 73 74 72 |) produc|es a str|
|00005bd0| 69 6e 67 20 63 6f 6e 73 | 69 73 74 69 6e 67 20 6f |ing cons|isting o|
|00005be0| 66 20 74 68 65 20 6e 65 | 78 74 20 69 20 63 68 61 |f the ne|xt i cha|
|00005bf0| 72 61 63 74 65 72 73 0d | 66 72 6f 6d 20 66 2c 20 |racters.|from f, |
|00005c00| 6f 72 20 74 68 65 20 72 | 65 6d 61 69 6e 69 6e 67 |or the r|emaining|
|00005c10| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 66 20 66 | charact|ers of f|
|00005c20| 20 69 66 20 66 65 77 65 | 72 20 72 65 6d 61 69 6e | if fewe|r remain|
|00005c30| 20 6f 6e 20 66 2c 0d 62 | 75 74 20 66 61 69 6c 73 | on f,.b|ut fails|
|00005c40| 20 6f 6e 20 65 6e 64 20 | 6f 66 20 66 69 6c 65 2e | on end |of file.|
|00005c50| 20 20 49 6e 20 72 65 61 | 64 73 28 29 2c 20 75 6e | In rea|ds(), un|
|00005c60| 6c 69 6b 65 20 72 65 61 | 64 28 29 2c 20 72 65 74 |like rea|d(), ret|
|00005c70| 75 72 6e 73 0d 68 61 76 | 65 20 6e 6f 20 73 70 65 |urns.hav|e no spe|
|00005c80| 63 69 61 6c 20 73 69 67 | 6e 69 66 69 63 61 6e 63 |cial sig|nificanc|
|00005c90| 65 2e 20 72 65 61 64 73 | 28 29 20 73 68 6f 75 6c |e. reads|() shoul|
|00005ca0| 64 20 62 65 20 75 73 65 | 64 20 66 6f 72 20 72 65 |d be use|d for re|
|00005cb0| 61 64 69 6e 67 0d 62 69 | 6e 61 72 79 20 64 61 74 |ading.bi|nary dat|
|00005cc0| 61 2e 0d 0d 44 65 66 61 | 75 6c 74 73 3a 20 66 20 |a...Defa|ults: f |
|00005cd0| 20 20 20 20 20 20 26 69 | 6e 70 75 74 0d 20 20 20 | &i|nput. |
|00005ce0| 20 20 20 20 20 20 20 69 | 20 20 20 20 20 20 20 31 | i| 1|
|00005cf0| 0d 0d 45 72 72 6f 72 73 | 3a 20 20 20 31 30 31 20 |..Errors|: 101 |
|00005d00| 20 20 20 20 69 20 6e 6f | 74 20 69 6e 74 65 67 65 | i no|t intege|
|00005d10| 72 0d 20 20 20 20 20 20 | 20 20 20 20 31 30 35 20 |r. | 105 |
|00005d20| 20 20 20 20 66 20 6e 6f | 74 20 66 69 6c 65 0d 20 | f no|t file. |
|00005d30| 20 20 20 20 20 20 20 20 | 20 32 30 35 20 20 20 20 | | 205 |
|00005d40| 20 69 20 3c 3d 20 30 0d | 20 20 20 20 20 20 20 20 | i <= 0.| |
|00005d50| 20 20 32 31 32 20 20 20 | 20 20 66 20 6e 6f 74 20 | 212 | f not |
|00005d60| 6f 70 65 6e 20 66 6f 72 | 20 72 65 61 64 69 6e 67 |open for| reading|
|00005d70| 0d 20 20 20 20 20 20 20 | 20 20 20 33 30 36 20 20 |. | 306 |
|00005d80| 20 20 20 69 6e 61 64 65 | 71 75 61 74 65 20 73 70 | inade|quate sp|
|00005d90| 61 63 65 20 69 6e 20 73 | 74 72 69 6e 67 20 72 65 |ace in s|tring re|
|00005da0| 67 69 6f 6e 0d 0d 53 65 | 65 20 61 6c 73 6f 3a 20 |gion..Se|e also: |
|00005db0| 72 65 61 64 28 29 0d 72 | 65 61 6c 28 78 29 20 3a |read().r|eal(x) :|
|00005dc0| 20 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | r | |
|00005dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005de0| 20 20 20 20 20 20 20 20 | 20 63 6f 6e 76 65 72 74 | | convert|
|00005df0| 20 74 6f 20 72 65 61 6c | 0d 0d 72 65 61 6c 28 78 | to real|..real(x|
|00005e00| 29 20 70 72 6f 64 75 63 | 65 73 20 61 20 72 65 61 |) produc|es a rea|
|00005e10| 6c 20 6e 75 6d 62 65 72 | 20 72 65 73 75 6c 74 69 |l number| resulti|
|00005e20| 6e 67 20 66 72 6f 6d 20 | 63 6f 6e 76 65 72 74 69 |ng from |converti|
|00005e30| 6e 67 20 78 2c 20 62 75 | 74 0d 66 61 69 6c 73 20 |ng x, bu|t.fails |
|00005e40| 69 66 20 74 68 65 20 63 | 6f 6e 76 65 72 73 69 6f |if the c|onversio|
|00005e50| 6e 20 69 73 20 6e 6f 74 | 20 70 6f 73 73 69 62 6c |n is not| possibl|
|00005e60| 65 2e 0d 0d 45 72 72 6f | 72 3a 20 20 20 20 33 30 |e...Erro|r: 30|
|00005e70| 37 20 20 20 20 20 69 6e | 61 64 65 71 75 61 74 65 |7 in|adequate|
|00005e80| 20 73 70 61 63 65 20 69 | 6e 20 62 6c 6f 63 6b 20 | space i|n block |
|00005e90| 72 65 67 69 6f 6e 0d 0d | 53 65 65 20 61 6c 73 6f |region..|See also|
|00005ea0| 3a 20 69 6e 74 65 67 65 | 72 28 29 20 61 6e 64 20 |: intege|r() and |
|00005eb0| 6e 75 6d 65 72 69 63 28 | 29 0d 72 65 6d 6f 76 65 |numeric(|).remove|
|00005ec0| 28 73 29 20 3a 20 6e 20 | 20 20 20 20 20 20 20 20 |(s) : n | |
|00005ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ef0| 72 65 6d 6f 76 65 20 66 | 69 6c 65 0d 0d 72 65 6d |remove f|ile..rem|
|00005f00| 6f 76 65 28 73 29 20 72 | 65 6d 6f 76 65 73 20 28 |ove(s) r|emoves (|
|00005f10| 64 65 6c 65 74 65 73 29 | 20 74 68 65 20 66 69 6c |deletes)| the fil|
|00005f20| 65 20 6e 61 6d 65 64 20 | 73 2c 20 62 75 74 20 66 |e named |s, but f|
|00005f30| 61 69 6c 73 20 69 66 20 | 73 20 63 61 6e 2d 0d 6e |ails if |s can-.n|
|00005f40| 6f 74 20 62 65 20 72 65 | 6d 6f 76 65 64 2e 0d 0d |ot be re|moved...|
|00005f50| 45 72 72 6f 72 3a 20 20 | 20 20 31 30 33 20 20 20 |Error: | 103 |
|00005f60| 20 20 73 20 6e 6f 74 20 | 73 74 72 69 6e 67 0d 0d | s not |string..|
|00005f70| 53 65 65 20 61 6c 73 6f | 3a 20 72 65 6e 61 6d 65 |See also|: rename|
|00005f80| 28 29 0d 72 65 6e 61 6d | 65 28 73 31 2c 73 32 29 |().renam|e(s1,s2)|
|00005f90| 20 3a 20 6e 20 20 20 20 | 20 20 20 20 20 20 20 20 | : n | |
|00005fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fb0| 20 20 20 20 20 20 20 20 | 20 72 65 6e 61 6d 65 20 | | rename |
|00005fc0| 66 69 6c 65 0d 0d 72 65 | 6e 61 6d 65 28 73 31 2c |file..re|name(s1,|
|00005fd0| 73 32 29 20 72 65 6e 61 | 6d 65 73 20 74 68 65 20 |s2) rena|mes the |
|00005fe0| 66 69 6c 65 20 6e 61 6d | 65 64 20 73 31 20 74 6f |file nam|ed s1 to|
|00005ff0| 20 62 65 20 73 32 2c 20 | 62 75 74 20 66 61 69 6c | be s2, |but fail|
|00006000| 73 20 69 66 0d 74 68 65 | 20 72 65 6e 61 6d 69 6e |s if.the| renamin|
|00006010| 67 20 63 61 6e 6e 6f 74 | 20 62 65 20 64 6f 6e 65 |g cannot| be done|
|00006020| 2e 0d 0d 45 72 72 6f 72 | 3a 20 20 20 20 31 30 33 |...Error|: 103|
|00006030| 20 20 20 20 20 73 31 20 | 6f 72 20 73 32 20 6e 6f | s1 |or s2 no|
|00006040| 74 20 73 74 72 69 6e 67 | 0d 0d 53 65 65 20 61 6c |t string|..See al|
|00006050| 73 6f 3a 20 72 65 6d 6f | 76 65 28 29 0d 72 65 70 |so: remo|ve().rep|
|00006060| 6c 28 73 31 2c 69 29 20 | 3a 20 73 32 20 20 20 20 |l(s1,i) |: s2 |
|00006070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00006090| 70 6c 69 63 61 74 65 20 | 73 74 72 69 6e 67 0d 0d |plicate |string..|
|000060a0| 72 65 70 6c 28 73 31 2c | 69 29 20 70 72 6f 64 75 |repl(s1,|i) produ|
|000060b0| 63 65 73 20 61 20 73 74 | 72 69 6e 67 20 63 6f 6e |ces a st|ring con|
|000060c0| 73 69 73 74 69 6e 67 20 | 6f 66 20 69 20 63 6f 6e |sisting |of i con|
|000060d0| 63 61 74 65 6e 61 74 69 | 6f 6e 73 20 6f 66 0d 73 |catenati|ons of.s|
|000060e0| 31 2e 0d 0d 45 72 72 6f | 72 73 3a 20 20 20 31 30 |1...Erro|rs: 10|
|000060f0| 31 20 20 20 20 20 69 20 | 6e 6f 74 20 69 6e 74 65 |1 i |not inte|
|00006100| 67 65 72 0d 20 20 20 20 | 20 20 20 20 20 20 31 30 |ger. | 10|
|00006110| 33 20 20 20 20 20 73 31 | 20 6e 6f 74 20 73 74 72 |3 s1| not str|
|00006120| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 32 30 |ing. | 20|
|00006130| 35 20 20 20 20 20 69 20 | 3c 20 30 0d 20 20 20 20 |5 i |< 0. |
|00006140| 20 20 20 20 20 20 33 30 | 36 20 20 20 20 20 69 6e | 30|6 in|
|00006150| 61 64 65 71 75 61 74 65 | 20 73 70 61 63 65 20 69 |adequate| space i|
|00006160| 6e 20 73 74 72 69 6e 67 | 20 72 65 67 69 6f 6e 0d |n string| region.|
|00006170| 72 65 76 65 72 73 65 28 | 73 31 29 20 3a 20 73 32 |reverse(|s1) : s2|
|00006180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061a0| 20 20 20 72 65 76 65 72 | 73 65 20 73 74 72 69 6e | rever|se strin|
|000061b0| 67 0d 0d 72 65 76 65 72 | 73 65 28 73 31 29 20 70 |g..rever|se(s1) p|
|000061c0| 72 6f 64 75 63 65 73 20 | 61 20 73 74 72 69 6e 67 |roduces |a string|
|000061d0| 20 63 6f 6e 73 69 73 74 | 69 6e 67 20 6f 66 20 74 | consist|ing of t|
|000061e0| 68 65 20 72 65 76 65 72 | 73 61 6c 20 6f 66 20 73 |he rever|sal of s|
|000061f0| 31 2e 0d 0d 45 72 72 6f | 72 73 3a 20 20 20 31 30 |1...Erro|rs: 10|
|00006200| 33 20 20 20 20 20 73 31 | 20 6e 6f 74 20 73 74 72 |3 s1| not str|
|00006210| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 33 30 |ing. | 30|
|00006220| 36 20 20 20 20 20 69 6e | 61 64 65 71 75 61 74 65 |6 in|adequate|
|00006230| 20 73 70 61 63 65 20 69 | 6e 20 73 74 72 69 6e 67 | space i|n string|
|00006240| 20 72 65 67 69 6f 6e 0d | 72 69 67 68 74 28 73 31 | region.|right(s1|
|00006250| 2c 69 2c 73 32 29 20 3a | 20 73 33 20 20 20 20 20 |,i,s2) :| s3 |
|00006260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006270| 20 70 6f 73 69 74 69 6f | 6e 20 73 74 72 69 6e 67 | positio|n string|
|00006280| 20 61 74 20 72 69 67 68 | 74 0d 0d 72 69 67 68 74 | at righ|t..right|
|00006290| 28 73 31 2c 69 2c 73 32 | 29 20 70 72 6f 64 75 63 |(s1,i,s2|) produc|
|000062a0| 65 73 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 73 |es a str|ing of s|
|000062b0| 69 7a 65 20 69 20 69 6e | 20 77 68 69 63 68 20 73 |ize i in| which s|
|000062c0| 31 20 69 73 20 70 6f 73 | 69 2d 0d 74 69 6f 6e 65 |1 is pos|i-.tione|
|000062d0| 64 20 61 74 20 74 68 65 | 20 72 69 67 68 74 2c 20 |d at the| right, |
|000062e0| 77 69 74 68 20 73 32 20 | 75 73 65 64 20 66 6f 72 |with s2 |used for|
|000062f0| 20 70 61 64 64 69 6e 67 | 20 61 74 20 74 68 65 20 | padding| at the |
|00006300| 6c 65 66 74 20 61 73 0d | 6e 65 63 65 73 73 61 72 |left as.|necessar|
|00006310| 79 2e 0d 0d 44 65 66 61 | 75 6c 74 73 3a 20 69 20 |y...Defa|ults: i |
|00006320| 20 20 20 20 20 20 31 0d | 20 20 20 20 20 20 20 20 | 1.| |
|00006330| 20 20 73 32 20 20 20 20 | 20 20 22 20 22 0d 0d 45 | s2 | " "..E|
|00006340| 72 72 6f 72 73 3a 20 20 | 20 31 30 31 20 20 20 20 |rrors: | 101 |
|00006350| 20 69 20 6e 6f 74 20 69 | 6e 74 65 67 65 72 0d 20 | i not i|nteger. |
|00006360| 20 20 20 20 20 20 20 20 | 20 31 30 33 20 20 20 20 | | 103 |
|00006370| 20 73 31 20 6f 72 20 73 | 32 20 6e 6f 74 20 73 74 | s1 or s|2 not st|
|00006380| 72 69 6e 67 0d 20 20 20 | 20 20 20 20 20 20 20 32 |ring. | 2|
|00006390| 30 35 20 20 20 20 20 69 | 20 3c 20 30 0d 20 20 20 |05 i| < 0. |
|000063a0| 20 20 20 20 20 20 20 33 | 30 36 20 20 20 20 20 69 | 3|06 i|
|000063b0| 6e 61 64 65 71 75 61 74 | 65 20 73 70 61 63 65 20 |nadequat|e space |
|000063c0| 69 6e 20 73 74 72 69 6e | 67 20 72 65 67 69 6f 6e |in strin|g region|
|000063d0| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 63 65 6e 74 |..See al|so: cent|
|000063e0| 65 72 28 29 20 61 6e 64 | 20 6c 65 66 74 28 29 0d |er() and| left().|
|000063f0| 72 74 6f 64 28 72 31 29 | 20 3a 20 72 32 20 20 20 |rtod(r1)| : r2 |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.