home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| C source text
| default
| |
96%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 42 75 | 69 6c 74 2d 69 6e 20 4d |ts of Bu|ilt-in M|
|000000b0| 6f 64 75 6c 65 20 61 72 | 72 61 79 3c 2f 54 49 54 |odule ar|ray</TIT|
|000000c0| 4c 45 3e 0a 0a 3c 4d 45 | 54 41 20 48 54 54 50 2d |LE>..<ME|TA HTTP-|
|000000d0| 45 51 55 49 56 3d 22 43 | 6f 6e 74 65 6e 74 2d 54 |EQUIV="C|ontent-T|
|000000e0| 79 70 65 22 20 43 4f 4e | 54 45 4e 54 3d 22 74 65 |ype" CON|TENT="te|
|000000f0| 78 74 2f 68 74 6d 6c 3b | 20 63 68 61 72 73 65 74 |xt/html;| charset|
|00000100| 3d 75 74 66 2d 38 22 3e | 0a 3c 4d 45 54 41 20 4e |=utf-8">|.<META N|
|00000110| 41 4d 45 3d 22 76 69 65 | 77 70 6f 72 74 22 20 43 |AME="vie|wport" C|
|00000120| 4f 4e 54 45 4e 54 3d 22 | 77 69 64 74 68 3d 64 65 |ONTENT="|width=de|
|00000130| 76 69 63 65 2d 77 69 64 | 74 68 2c 20 69 6e 69 74 |vice-wid|th, init|
|00000140| 69 61 6c 2d 73 63 61 6c | 65 3d 31 2e 30 22 3e 0a |ial-scal|e=1.0">.|
|00000150| 3c 4d 45 54 41 20 4e 41 | 4d 45 3d 22 47 65 6e 65 |<META NA|ME="Gene|
|00000160| 72 61 74 6f 72 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |rator" C|ONTENT="|
|00000170| 4c 61 54 65 58 32 48 54 | 4d 4c 20 76 32 30 32 32 |LaTeX2HT|ML v2022|
|00000180| 22 3e 0a 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 53 |">..<LIN|K REL="S|
|00000190| 54 59 4c 45 53 48 45 45 | 54 22 20 48 52 45 46 3d |TYLESHEE|T" HREF=|
|000001a0| 22 74 65 78 2e 63 73 73 | 22 3e 0a 0a 3c 4c 49 4e |"tex.css|">..<LIN|
|000001b0| 4b 20 52 45 4c 3d 22 70 | 72 65 76 69 6f 75 73 22 |K REL="p|revious"|
|000001c0| 20 48 52 45 46 3d 22 74 | 65 78 5f 6d 6e 2e 68 74 | HREF="t|ex_mn.ht|
|000001d0| 6d 6c 22 3e 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |ml">.<LI|NK REL="|
|000001e0| 75 70 22 20 48 52 45 46 | 3d 22 74 65 78 5f 6d 6e |up" HREF|="tex_mn|
|000001f0| 2e 68 74 6d 6c 22 3e 0a | 3c 2f 48 45 41 44 3e 0a |.html">.|</HEAD>.|
|00000200| 20 0a 3c 42 4f 44 59 20 | 62 67 63 6f 6c 6f 72 3d | .<BODY |bgcolor=|
|00000210| 22 23 66 66 66 66 66 66 | 22 20 74 65 78 74 3d 22 |"#ffffff|" text="|
|00000220| 23 30 30 30 30 30 30 22 | 20 6c 69 6e 6b 3d 22 23 |#000000"| link="#|
|00000230| 39 39 34 34 45 45 22 20 | 76 6c 69 6e 6b 3d 22 23 |9944EE" |vlink="#|
|00000240| 30 30 30 30 66 66 22 20 | 61 6c 69 6e 6b 3d 22 23 |0000ff" |alink="#|
|00000250| 30 30 66 66 30 30 22 3e | 0a 0a 3c 48 31 3e 3c 41 |00ff00">|..<H1><A|
|00000260| 20 49 44 3d 22 53 45 43 | 54 49 4f 4e 30 30 30 31 | ID="SEC|TION0001|
|00000270| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|00000280| 22 3e 0a 42 75 69 6c 74 | 2d 69 6e 20 4d 6f 64 75 |">.Built|-in Modu|
|00000290| 6c 65 20 61 72 72 61 79 | 3c 2f 41 3e 0a 3c 2f 48 |le array|</A>.</H|
|000002a0| 31 3e 0a 61 72 72 61 79 | 0a 3c 41 20 49 44 3d 22 |1>.array|.<A ID="|
|000002b0| 33 22 3e 3c 2f 41 3e 0a | 0a 3c 50 3e 0a 54 68 69 |3"></A>.|.<P>.Thi|
|000002c0| 73 20 6d 6f 64 75 6c 65 | 20 64 65 66 69 6e 65 73 |s module| defines|
|000002d0| 20 61 20 6e 65 77 20 6f | 62 6a 65 63 74 20 74 79 | a new o|bject ty|
|000002e0| 70 65 20 77 68 69 63 68 | 20 63 61 6e 20 65 66 66 |pe which| can eff|
|000002f0| 69 63 69 65 6e 74 6c 79 | 20 72 65 70 72 65 73 65 |iciently| represe|
|00000300| 6e 74 0a 61 6e 20 61 72 | 72 61 79 20 6f 66 20 62 |nt.an ar|ray of b|
|00000310| 61 73 69 63 20 76 61 6c | 75 65 73 3a 20 63 68 61 |asic val|ues: cha|
|00000320| 72 61 63 74 65 72 73 2c | 20 69 6e 74 65 67 65 72 |racters,| integer|
|00000330| 73 2c 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |s, float|ing poin|
|00000340| 74 0a 6e 75 6d 62 65 72 | 73 2e 20 20 41 72 72 61 |t.number|s. Arra|
|00000350| 79 73 20 61 72 65 20 73 | 65 71 75 65 6e 63 65 20 |ys are s|equence |
|00000360| 74 79 70 65 73 20 61 6e | 64 20 62 65 68 61 76 65 |types an|d behave|
|00000370| 20 76 65 72 79 20 6d 75 | 63 68 20 6c 69 6b 65 20 | very mu|ch like |
|00000380| 6c 69 73 74 73 2c 0a 65 | 78 63 65 70 74 20 74 68 |lists,.e|xcept th|
|00000390| 61 74 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 6f |at the t|ype of o|
|000003a0| 62 6a 65 63 74 73 20 73 | 74 6f 72 65 64 20 69 6e |bjects s|tored in|
|000003b0| 20 74 68 65 6d 20 69 73 | 20 63 6f 6e 73 74 72 61 | them is| constra|
|000003c0| 69 6e 65 64 2e 20 20 54 | 68 65 0a 74 79 70 65 20 |ined. T|he.type |
|000003d0| 69 73 20 73 70 65 63 69 | 66 69 65 64 20 61 74 20 |is speci|fied at |
|000003e0| 6f 62 6a 65 63 74 20 63 | 72 65 61 74 69 6f 6e 20 |object c|reation |
|000003f0| 74 69 6d 65 20 62 79 20 | 75 73 69 6e 67 20 61 20 |time by |using a |
|00000400| 74 79 70 65 20 63 6f 64 | 65 2c 0a 77 68 69 63 68 |type cod|e,.which|
|00000410| 20 69 73 20 61 20 73 69 | 6e 67 6c 65 20 63 68 61 | is a si|ngle cha|
|00000420| 72 61 63 74 65 72 2e 20 | 20 54 68 65 20 66 6f 6c |racter. | The fol|
|00000430| 6c 6f 77 69 6e 67 20 74 | 79 70 65 20 63 6f 64 65 |lowing t|ype code|
|00000440| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 3a 0a 0a |s are de|fined:..|
|00000450| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 53 |<P>.<BR>|.<IMG. S|
|00000460| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 33 31 |TYLE="he|ight: 31|
|00000470| 34 2e 30 30 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |4.00ex; |" SRC="i|
|00000480| 6d 67 31 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg1.png"|. ALT="\|
|00000490| 62 65 67 69 6e 7b 74 61 | 62 6c 65 69 69 69 7d 7b |begin{ta|bleiii}{|
|000004a0| 5c 76 65 72 74 20 63 5c | 76 65 72 74 20 63 5c 76 |\vert c\|vert c\v|
|000004b0| 65 72 74 20 63 5c 76 65 | 72 74 7d 7b 63 6f 64 65 |ert c\ve|rt}{code|
|000004c0| 7d 7b 54 79 70 65 63 6f | 64 65 7d 7b 54 79 70 65 |}{Typeco|de}{Type|
|000004d0| 7d 7b 4d 69 6e 69 6d 61 | 6c 20 73 69 7a 65 20 2e |}{Minima|l size .|
|000004e0| 2e 2e 0a 2e 2e 2e 5c 6c | 69 6e 65 69 69 69 7b 27 |......\l|ineiii{'|
|000004f0| 66 27 7d 7b 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |f'}{floa|ting poi|
|00000500| 6e 74 7d 7b 34 7d 0a 5c | 6c 69 6e 65 69 69 69 7b |nt}{4}.\|lineiii{|
|00000510| 27 64 27 7d 7b 66 6c 6f | 61 74 69 6e 67 20 70 6f |'d'}{flo|ating po|
|00000520| 69 6e 74 7d 7b 38 7d 0a | 5c 65 6e 64 7b 74 61 62 |int}{8}.|\end{tab|
|00000530| 6c 65 69 69 69 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |leiii}">|.<BR>..<|
|00000540| 50 3e 0a 54 68 65 20 61 | 63 74 75 61 6c 20 72 65 |P>.The a|ctual re|
|00000550| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |presenta|tion of |
|00000560| 76 61 6c 75 65 73 20 69 | 73 20 64 65 74 65 72 6d |values i|s determ|
|00000570| 69 6e 65 64 20 62 79 20 | 74 68 65 20 6d 61 63 68 |ined by |the mach|
|00000580| 69 6e 65 0a 61 72 63 68 | 69 74 65 63 74 75 72 65 |ine.arch|itecture|
|00000590| 20 28 73 74 72 69 63 74 | 6c 79 20 73 70 65 61 6b | (strict|ly speak|
|000005a0| 69 6e 67 2c 20 62 79 20 | 74 68 65 20 43 20 69 6d |ing, by |the C im|
|000005b0| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 29 2e 20 20 |plementa|tion). |
|000005c0| 54 68 65 20 61 63 74 75 | 61 6c 0a 73 69 7a 65 20 |The actu|al.size |
|000005d0| 63 61 6e 20 62 65 20 61 | 63 63 65 73 73 65 64 20 |can be a|ccessed |
|000005e0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 69 74 65 6d |through |the item|
|000005f0| 73 69 7a 65 20 61 74 74 | 72 69 62 75 74 65 2e 0a |size att|ribute..|
|00000600| 0a 3c 50 3e 0a 53 65 65 | 20 61 6c 73 6f 20 62 75 |.<P>.See| also bu|
|00000610| 69 6c 74 2d 69 6e 20 6d | 6f 64 75 6c 65 20 73 74 |ilt-in m|odule st|
|00000620| 72 75 63 74 2e 0a 73 74 | 72 75 63 74 0a 0a 3c 50 |ruct..st|ruct..<P|
|00000630| 3e 0a 54 68 65 20 6d 6f | 64 75 6c 65 20 64 65 66 |>.The mo|dule def|
|00000640| 69 6e 65 73 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ines the| followi|
|00000650| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 3a 0a 0a 3c 50 |ng funct|ion:..<P|
|00000660| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |>..<P>.<|BR>.<IMG|
|00000670| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|00000680| 3a 20 32 2e 31 30 65 78 | 3b 20 76 65 72 74 69 63 |: 2.10ex|; vertic|
|00000690| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 35 35 |al-align|: 176.55|
|000006a0| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 32 2e |ex; " SR|C="img2.|
|000006b0| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000006c0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 61 72 72 61 |n{funcde|sc}{arra|
|000006d0| 79 7d 7b 74 79 70 65 63 | 6f 64 65 5c 6f 70 74 69 |y}{typec|ode\opti|
|000006e0| 6f 6e 61 6c 7b 5c 2c 20 | 69 6e 69 74 69 61 6c 69 |onal{\, |initiali|
|000006f0| 7a 65 72 7d 7d 0a 52 65 | 74 75 72 6e 20 61 20 6e |zer}}.Re|turn a n|
|00000700| 65 77 20 61 72 72 61 79 | 20 77 68 2e 2e 2e 0a 2e |ew array| wh.....|
|00000710| 2e 2e 6f 6d 73 74 72 69 | 6e 67 28 29 7d 20 6d 65 |..omstri|ng()} me|
|00000720| 74 68 6f 64 20 28 73 65 | 65 20 62 65 6c 6f 77 29 |thod (se|e below)|
|00000730| 20 74 6f 20 61 64 64 0a | 69 6e 69 74 69 61 6c 20 | to add.|initial |
|00000740| 69 74 65 6d 73 20 74 6f | 20 74 68 65 20 61 72 72 |items to| the arr|
|00000750| 61 79 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |ay..\end|{funcdes|
|00000760| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 41 |c}">.<BR|>..<P>.A|
|00000770| 72 72 61 79 20 6f 62 6a | 65 63 74 73 20 73 75 70 |rray obj|ects sup|
|00000780| 70 6f 72 74 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |port the| followi|
|00000790| 6e 67 20 64 61 74 61 20 | 69 74 65 6d 73 20 61 6e |ng data |items an|
|000007a0| 64 20 6d 65 74 68 6f 64 | 73 3a 0a 0a 3c 50 3e 0a |d method|s:..<P>.|
|000007b0| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|000007c0| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 31 37 65 |E="heigh|t: 2.17e|
|000007d0| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|000007e0| 6e 3a 20 31 37 36 2e 35 | 34 65 78 3b 20 22 20 53 |n: 176.5|4ex; " S|
|000007f0| 52 43 3d 22 69 6d 67 33 | 2e 70 6e 67 22 0a 20 41 |RC="img3|.png". A|
|00000800| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |LT="\beg|in{datad|
|00000810| 65 73 63 7d 7b 74 79 70 | 65 63 6f 64 65 7d 0a 54 |esc}{typ|ecode}.T|
|00000820| 68 65 20 74 79 70 65 63 | 6f 64 65 20 63 68 61 72 |he typec|ode char|
|00000830| 61 63 74 65 72 20 75 73 | 65 64 20 74 6f 20 63 72 |acter us|ed to cr|
|00000840| 65 61 74 65 20 74 68 65 | 20 61 72 72 61 79 2e 0a |eate the| array..|
|00000850| 5c 65 6e 64 7b 64 61 74 | 61 64 65 73 63 7d 22 3e |\end{dat|adesc}">|
|00000860| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00000870| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000880| 69 67 68 74 3a 20 32 2e | 31 30 65 78 3b 20 76 65 |ight: 2.|10ex; ve|
|00000890| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|000008a0| 36 2e 36 38 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.68ex; |" SRC="i|
|000008b0| 6d 67 34 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg4.png"|. ALT="\|
|000008c0| 62 65 67 69 6e 7b 64 61 | 74 61 64 65 73 63 7d 7b |begin{da|tadesc}{|
|000008d0| 69 74 65 6d 73 69 7a 65 | 7d 0a 54 68 65 20 6c 65 |itemsize|}.The le|
|000008e0| 6e 67 74 68 20 69 6e 20 | 62 79 74 65 73 20 6f 66 |ngth in |bytes of|
|000008f0| 20 6f 6e 65 20 61 72 72 | 61 79 20 69 74 65 6d 20 | one arr|ay item |
|00000900| 69 6e 20 74 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |in the i|nternal |
|00000910| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 2e 0a |represen|tation..|
|00000920| 5c 65 6e 64 7b 64 61 74 | 61 64 65 73 63 7d 22 3e |\end{dat|adesc}">|
|00000930| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00000940| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000950| 69 67 68 74 3a 20 32 2e | 31 37 65 78 3b 20 76 65 |ight: 2.|17ex; ve|
|00000960| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00000970| 36 2e 36 38 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.68ex; |" SRC="i|
|00000980| 6d 67 35 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg5.png"|. ALT="\|
|00000990| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|000009a0| 61 70 70 65 6e 64 7d 7b | 78 7d 0a 41 70 70 65 6e |append}{|x}.Appen|
|000009b0| 64 20 61 20 6e 65 77 20 | 69 74 65 6d 20 77 69 74 |d a new |item wit|
|000009c0| 68 20 76 61 6c 75 65 20 | 5c 76 61 72 7b 78 7d 20 |h value |\var{x} |
|000009d0| 74 6f 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |to the e|nd of th|
|000009e0| 65 20 61 72 72 61 79 2e | 0a 5c 65 6e 64 7b 66 75 |e array.|.\end{fu|
|000009f0| 6e 63 64 65 73 63 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |ncdesc}"|>.<BR>..|
|00000a00| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000a10| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00000a20| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00000a30| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 36 38 65 78 3b |align: 1|76.68ex;|
|00000a40| 20 22 20 53 52 43 3d 22 | 69 6d 67 36 2e 70 6e 67 | " SRC="|img6.png|
|00000a50| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00000a60| 75 6e 63 64 65 73 63 7d | 7b 62 79 74 65 73 77 61 |uncdesc}|{byteswa|
|00000a70| 70 7d 7b 78 7d 0a 5c 6c | 71 5c 6c 71 20 42 79 74 |p}{x}.\l|q\lq Byt|
|00000a80| 65 73 77 61 70 27 27 20 | 61 6c 6c 20 69 74 65 6d |eswap'' |all item|
|00000a90| 73 20 6f 66 20 74 68 65 | 20 61 72 72 61 79 2e 20 |s of the| array. |
|00000aa0| 54 68 69 73 20 69 73 20 | 6f 6e 6c 79 20 2e 2e 2e |This is |only ...|
|00000ab0| 0a 2e 2e 2e 61 74 61 20 | 66 72 6f 6d 20 61 20 66 |....ata |from a f|
|00000ac0| 69 6c 65 20 77 72 69 74 | 74 65 6e 0a 6f 6e 20 61 |ile writ|ten.on a|
|00000ad0| 20 6d 61 63 68 69 6e 65 | 20 77 69 74 68 20 61 20 | machine| with a |
|00000ae0| 64 69 66 66 65 72 65 6e | 74 20 62 79 74 65 20 6f |differen|t byte o|
|00000af0| 72 64 65 72 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |rder..\e|nd{funcd|
|00000b00| 65 73 63 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |esc}">.<|BR>..<P>|
|00000b10| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 20 53 54 59 |.<BR>.<I|MG. STY|
|00000b20| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 32 2e 31 37 |LE="heig|ht: 2.17|
|00000b30| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00000b40| 67 6e 3a 20 31 37 36 2e | 35 35 65 78 3b 20 22 20 |gn: 176.|55ex; " |
|00000b50| 53 52 43 3d 22 69 6d 67 | 37 2e 70 6e 67 22 0a 20 |SRC="img|7.png". |
|00000b60| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00000b70| 64 65 73 63 7d 7b 66 72 | 6f 6d 66 69 6c 65 7d 7b |desc}{fr|omfile}{|
|00000b80| 66 5c 2c 20 6e 7d 0a 52 | 65 61 64 20 5c 76 61 72 |f\, n}.R|ead \var|
|00000b90| 7b 6e 7d 20 69 74 65 6d | 73 20 28 61 73 20 6d 61 |{n} item|s (as ma|
|00000ba0| 63 68 69 6e 65 20 76 61 | 6c 75 65 73 29 20 66 72 |chine va|lues) fr|
|00000bb0| 6f 6d 20 74 68 2e 2e 2e | 0a 2e 2e 2e 66 69 6c 65 |om th...|....file|
|00000bc0| 20 6f 62 6a 65 63 74 3b | 20 73 6f 6d 65 74 68 69 | object;| somethi|
|00000bd0| 6e 67 20 65 6c 73 65 20 | 77 69 74 68 20 61 20 5c |ng else |with a \|
|00000be0| 63 6f 64 65 7b 72 65 61 | 64 28 29 7d 20 6d 65 74 |code{rea|d()} met|
|00000bf0| 68 6f 64 20 77 6f 6e 27 | 74 0a 64 6f 2e 0a 5c 65 |hod won'|t.do..\e|
|00000c00| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 22 3e 0a 3c |nd{funcd|esc}">.<|
|00000c10| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00000c20| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000c30| 68 74 3a 20 32 2e 33 38 | 65 78 3b 20 76 65 72 74 |ht: 2.38|ex; vert|
|00000c40| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000c50| 32 37 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |27ex; " |SRC="img|
|00000c60| 38 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |8.png". |ALT="\be|
|00000c70| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 66 72 |gin{func|desc}{fr|
|00000c80| 6f 6d 6c 69 73 74 7d 7b | 6c 69 73 74 7d 0a 41 70 |omlist}{|list}.Ap|
|00000c90| 70 65 6e 64 20 69 74 65 | 6d 73 20 66 72 6f 6d 20 |pend ite|ms from |
|00000ca0| 74 68 65 20 6c 69 73 74 | 2e 20 54 68 69 73 20 69 |the list|. This i|
|00000cb0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 2e 2e 2e |s equiva|lent ...|
|00000cc0| 0a 2e 2e 2e 78 29 7d 0a | 65 78 63 65 70 74 20 74 |....x)}.|except t|
|00000cd0| 68 61 74 20 69 66 20 74 | 68 65 72 65 20 69 73 20 |hat if t|here is |
|00000ce0| 61 20 74 79 70 65 20 65 | 72 72 6f 72 2c 20 74 68 |a type e|rror, th|
|00000cf0| 65 20 61 72 72 61 79 20 | 69 73 20 75 6e 63 68 61 |e array |is uncha|
|00000d00| 6e 67 65 64 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |nged..\e|nd{funcd|
|00000d10| 65 73 63 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |esc}">.<|BR>..<P>|
|00000d20| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 20 53 54 59 |.<BR>.<I|MG. STY|
|00000d30| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 32 2e 33 38 |LE="heig|ht: 2.38|
|00000d40| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00000d50| 67 6e 3a 20 31 37 36 2e | 32 37 65 78 3b 20 22 20 |gn: 176.|27ex; " |
|00000d60| 53 52 43 3d 22 69 6d 67 | 39 2e 70 6e 67 22 0a 20 |SRC="img|9.png". |
|00000d70| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00000d80| 64 65 73 63 7d 7b 66 72 | 6f 6d 73 74 72 69 6e 67 |desc}{fr|omstring|
|00000d90| 7d 7b 73 7d 0a 41 70 70 | 65 6e 64 73 20 69 74 65 |}{s}.App|ends ite|
|00000da0| 6d 73 20 66 72 6f 6d 20 | 74 68 65 20 73 74 72 69 |ms from |the stri|
|00000db0| 6e 67 2c 20 69 6e 74 65 | 72 70 72 65 74 69 6e 67 |ng, inte|rpreting|
|00000dc0| 20 74 68 65 20 2e 2e 2e | 0a 2e 2e 2e 69 74 20 68 | the ...|....it h|
|00000dd0| 61 64 20 62 65 65 6e 20 | 72 65 61 64 20 66 72 6f |ad been |read fro|
|00000de0| 6d 20 61 0a 66 69 6c 65 | 20 75 73 69 6e 67 20 74 |m a.file| using t|
|00000df0| 68 65 20 5c 63 6f 64 65 | 7b 66 72 6f 6d 66 69 6c |he \code|{fromfil|
|00000e00| 65 28 29 7d 20 6d 65 74 | 68 6f 64 29 2e 0a 5c 65 |e()} met|hod)..\e|
|00000e10| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 22 3e 0a 3c |nd{funcd|esc}">.<|
|00000e20| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00000e30| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000e40| 68 74 3a 20 32 2e 33 38 | 65 78 3b 20 76 65 72 74 |ht: 2.38|ex; vert|
|00000e50| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000e60| 34 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |40ex; " |SRC="img|
|00000e70| 31 30 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |10.png".| ALT="\b|
|00000e80| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 69 |egin{fun|cdesc}{i|
|00000e90| 6e 73 65 72 74 7d 7b 69 | 5c 2c 20 78 7d 0a 49 6e |nsert}{i|\, x}.In|
|00000ea0| 73 65 72 74 20 61 20 6e | 65 77 20 69 74 65 6d 20 |sert a n|ew item |
|00000eb0| 77 69 74 68 20 76 61 6c | 75 65 20 5c 76 61 72 7b |with val|ue \var{|
|00000ec0| 78 7d 20 69 6e 20 74 68 | 65 20 61 72 72 61 79 20 |x} in th|e array |
|00000ed0| 62 65 66 6f 72 65 20 70 | 6f 73 69 74 69 6f 6e 0a |before p|osition.|
|00000ee0| 5c 76 61 72 7b 69 7d 2e | 0a 5c 65 6e 64 7b 66 75 |\var{i}.|.\end{fu|
|00000ef0| 6e 63 64 65 73 63 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |ncdesc}"|>.<BR>..|
|00000f00| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000f10| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00000f20| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00000f30| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 35 35 65 78 3b |align: 1|76.55ex;|
|00000f40| 20 22 20 53 52 43 3d 22 | 69 6d 67 31 31 2e 70 6e | " SRC="|img11.pn|
|00000f50| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000f60| 66 75 6e 63 64 65 73 63 | 7d 7b 74 6f 66 69 6c 65 |funcdesc|}{tofile|
|00000f70| 7d 7b 66 7d 0a 57 72 69 | 74 65 20 61 6c 6c 20 69 |}{f}.Wri|te all i|
|00000f80| 74 65 6d 73 20 28 61 73 | 20 6d 61 63 68 69 6e 65 |tems (as| machine|
|00000f90| 20 76 61 6c 75 65 73 29 | 20 74 6f 20 74 68 65 20 | values)| to the |
|00000fa0| 66 69 6c 65 20 6f 62 6a | 65 63 74 20 5c 76 61 72 |file obj|ect \var|
|00000fb0| 7b 66 7d 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |{f}..\en|d{funcde|
|00000fc0| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|00000fd0| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00000fe0| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 33 38 65 |E="heigh|t: 2.38e|
|00000ff0| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00001000| 6e 3a 20 31 37 36 2e 34 | 30 65 78 3b 20 22 20 53 |n: 176.4|0ex; " S|
|00001010| 52 43 3d 22 69 6d 67 31 | 32 2e 70 6e 67 22 0a 20 |RC="img1|2.png". |
|00001020| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00001030| 64 65 73 63 7d 7b 74 6f | 6c 69 73 74 7d 7b 7d 0a |desc}{to|list}{}.|
|00001040| 43 6f 6e 76 65 72 74 20 | 74 68 65 20 61 72 72 61 |Convert |the arra|
|00001050| 79 20 74 6f 20 61 6e 20 | 6f 72 64 69 6e 61 72 79 |y to an |ordinary|
|00001060| 20 6c 69 73 74 20 77 69 | 74 68 20 74 68 65 20 73 | list wi|th the s|
|00001070| 61 6d 65 20 69 74 65 6d | 73 2e 0a 5c 65 6e 64 7b |ame item|s..\end{|
|00001080| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|00001090| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|000010a0| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|000010b0| 20 32 2e 31 37 65 78 3b | 20 76 65 72 74 69 63 61 | 2.17ex;| vertica|
|000010c0| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 35 35 65 |l-align:| 176.55e|
|000010d0| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 33 2e |x; " SRC|="img13.|
|000010e0| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000010f0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 74 6f 73 74 |n{funcde|sc}{tost|
|00001100| 72 69 6e 67 7d 7b 7d 0a | 43 6f 6e 76 65 72 74 20 |ring}{}.|Convert |
|00001110| 74 68 65 20 61 72 72 61 | 79 20 74 6f 20 61 6e 20 |the arra|y to an |
|00001120| 61 72 72 61 79 20 6f 66 | 20 6d 61 63 68 69 6e 65 |array of| machine|
|00001130| 20 76 61 6c 75 65 73 20 | 61 6e 64 2e 2e 2e 0a 2e | values |and.....|
|00001140| 2e 2e 73 20 74 68 61 74 | 20 77 6f 75 6c 64 0a 62 |..s that| would.b|
|00001150| 65 20 77 72 69 74 74 65 | 6e 20 74 6f 20 61 20 66 |e writte|n to a f|
|00001160| 69 6c 65 20 62 79 20 74 | 68 65 20 5c 63 6f 64 65 |ile by t|he \code|
|00001170| 7b 74 6f 66 69 6c 65 28 | 29 7d 20 6d 65 74 68 6f |{tofile(|)} metho|
|00001180| 64 2e 29 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |d.).\end|{funcdes|
|00001190| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 57 |c}">.<BR|>..<P>.W|
|000011a0| 68 65 6e 20 61 6e 20 61 | 72 72 61 79 20 6f 62 6a |hen an a|rray obj|
|000011b0| 65 63 74 20 69 73 20 70 | 72 69 6e 74 65 64 20 6f |ect is p|rinted o|
|000011c0| 72 20 63 6f 6e 76 65 72 | 74 65 64 20 74 6f 20 61 |r conver|ted to a|
|000011d0| 20 73 74 72 69 6e 67 2c | 20 69 74 20 69 73 0a 72 | string,| it is.r|
|000011e0| 65 70 72 65 73 65 6e 74 | 65 64 20 61 73 20 61 72 |epresent|ed as ar|
|000011f0| 72 61 79 28 74 79 70 65 | 63 6f 64 65 2c 20 69 6e |ray(type|code, in|
|00001200| 69 74 69 61 6c 69 7a 65 | 72 29 2e 20 20 54 68 65 |itialize|r). The|
|00001210| 0a 69 6e 69 74 69 61 6c | 69 7a 65 72 20 69 73 20 |.initial|izer is |
|00001220| 6f 6d 69 74 74 65 64 20 | 69 66 20 74 68 65 20 61 |omitted |if the a|
|00001230| 72 72 61 79 20 69 73 20 | 65 6d 70 74 79 2c 20 6f |rray is |empty, o|
|00001240| 74 68 65 72 77 69 73 65 | 20 69 74 20 69 73 20 61 |therwise| it is a|
|00001250| 0a 73 74 72 69 6e 67 20 | 69 66 20 74 68 65 20 74 |.string |if the t|
|00001260| 79 70 65 63 6f 64 65 20 | 69 73 20 27 63 27 2c 20 |ypecode |is 'c', |
|00001270| 6f 74 68 65 72 77 69 73 | 65 20 69 74 20 69 73 20 |otherwis|e it is |
|00001280| 61 20 6c 69 73 74 20 6f | 66 0a 6e 75 6d 62 65 72 |a list o|f.number|
|00001290| 73 2e 20 20 54 68 65 20 | 73 74 72 69 6e 67 20 69 |s. The |string i|
|000012a0| 73 20 67 75 61 72 61 6e | 74 65 65 64 20 74 6f 20 |s guaran|teed to |
|000012b0| 62 65 20 61 62 6c 65 20 | 74 6f 20 62 65 20 63 6f |be able |to be co|
|000012c0| 6e 76 65 72 74 65 64 20 | 62 61 63 6b 20 74 6f 0a |nverted |back to.|
|000012d0| 61 6e 20 61 72 72 61 79 | 20 77 69 74 68 20 74 68 |an array| with th|
|000012e0| 65 20 73 61 6d 65 20 74 | 79 70 65 20 61 6e 64 20 |e same t|ype and |
|000012f0| 76 61 6c 75 65 20 75 73 | 69 6e 67 20 72 65 76 65 |value us|ing reve|
|00001300| 72 73 65 20 71 75 6f 74 | 65 73 0a 28 60 60 29 2e |rse quot|es.(``).|
|00001310| 20 20 45 78 61 6d 70 6c | 65 73 3a 0a 0a 3c 50 3e | Exampl|es:..<P>|
|00001320| 0a 3c 50 52 45 3e 0a 61 | 72 72 61 79 28 27 6c 27 |.<PRE>.a|rray('l'|
|00001330| 29 0a 61 72 72 61 79 28 | 27 63 27 2c 20 27 68 65 |).array(|'c', 'he|
|00001340| 6c 6c 6f 20 77 6f 72 6c | 64 27 29 0a 61 72 72 61 |llo worl|d').arra|
|00001350| 79 28 27 6c 27 2c 20 5b | 31 2c 20 32 2c 20 33 2c |y('l', [|1, 2, 3,|
|00001360| 20 34 2c 20 35 5d 29 0a | 61 72 72 61 79 28 27 64 | 4, 5]).|array('d|
|00001370| 27 2c 20 5b 31 2e 30 2c | 20 32 2e 30 2c 20 33 2e |', [1.0,| 2.0, 3.|
|00001380| 31 34 5d 29 0a 3c 2f 50 | 52 45 3e 0a 0a 3c 48 52 |14]).</P|RE>..<HR|
|00001390| 3e 0a 0a 3c 2f 42 4f 44 | 59 3e 0a 3c 2f 48 54 4d |>..</BOD|Y>.</HTM|
|000013a0| 4c 3e 0a | |L>. | |
+--------+-------------------------+-------------------------+--------+--------+