comparison Doc/lib/libarray.tex @ 7277:bf4e790bd61a legacy-trunk

Remove all \bcode / \ecode cruft; this is no longer needed. See previous checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
author Fred Drake <fdrake@acm.org>
date Fri, 13 Feb 1998 06:58:54 +0000
parents dce838cd42c1
children d17db3ebfbc2
comparison
equal deleted inserted replaced
7276:39de49434df4 7277:bf4e790bd61a
34 See also built-in module \code{struct}. 34 See also built-in module \code{struct}.
35 \refbimodindex{struct} 35 \refbimodindex{struct}
36 36
37 The module defines the following function: 37 The module defines the following function:
38 38
39 \renewcommand{\indexsubitem}{(in module array)} 39 \setindexsubitem{(in module array)}
40 40
41 \begin{funcdesc}{array}{typecode\optional{\, initializer}} 41 \begin{funcdesc}{array}{typecode\optional{\, initializer}}
42 Return a new array whose items are restricted by \var{typecode}, and 42 Return a new array whose items are restricted by \var{typecode}, and
43 initialized from the optional \var{initializer} value, which must be a 43 initialized from the optional \var{initializer} value, which must be a
44 list or a string. The list or string is passed to the new array's 44 list or a string. The list or string is passed to the new array's
122 string if the \var{typecode} is \code{'c'}, otherwise it is a list of 122 string if the \var{typecode} is \code{'c'}, otherwise it is a list of
123 numbers. The string is guaranteed to be able to be converted back to 123 numbers. The string is guaranteed to be able to be converted back to
124 an array with the same type and value using reverse quotes 124 an array with the same type and value using reverse quotes
125 (\code{``}). Examples: 125 (\code{``}). Examples:
126 126
127 \bcode\begin{verbatim} 127 \begin{verbatim}
128 array('l') 128 array('l')
129 array('c', 'hello world') 129 array('c', 'hello world')
130 array('l', [1, 2, 3, 4, 5]) 130 array('l', [1, 2, 3, 4, 5])
131 array('d', [1.0, 2.0, 3.14]) 131 array('d', [1.0, 2.0, 3.14])
132 \end{verbatim}\ecode 132 \end{verbatim}