Changeset 26925 in project


Ignore:
Timestamp:
06/19/12 10:28:44 (9 years ago)
Author:
felix winkelmann
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/fox

    r26924 r26925  
    33332. The default value of <writer> is DISPLAY procedure.
    3434
    35 3. The <width> is an integer, and the <precision> is a non-negative exact
    36    integer.
    37 
    38 4. The new optional arguments, <point> ('fixed or 'float), <pre-string>, and
    39    <post-string> are added.
    40 
    41 5. The <take> is changed from a list to a pair, and its elements are exact
    42    integers, strings, or procedures.
    43 
    44 6. The <separator> is changed from a list to a vector, and the second element
    45    of <separator> is a non-zero exact integer.
     353. The <width> is an integer, and the <precision> is a non-negative exact integer.
     36
     374. The new optional arguments, <point> ('fixed or 'float), <pre-string>, and <post-string> are added.
     38
     395. The <take> is changed from a list to a pair, and its elements are exact integers, strings, or procedures.
     40
     416. The <separator> is changed from a list to a vector, and the second element of <separator> is a non-zero exact integer.
    4642
    47437. Infinities and nans of R6RS are supported.
     
    9288
    93892.  The <width> is an integer whose absolute value specifies the width of the
    94     resulting string.  When the resulting string has fewer characters than the
    95     absolute value of <width>, it is placed rightmost with the rest being
    96     padded with <char>s, if <width> is positive, or it is placed leftmost with
    97     the rest being padded with <char>s, if <width> is negative, or it is
    98     placed in the center (near to right in case of positive <width>, or near
    99     to left in case of negative <width>) with the rest being padded with
    100     <char>s, if <width> is an inexact integer.  On the other hand, when the
    101     resulting string has more characters than the absolute value of <width>,
    102     the <width> is ignored.  The default value is 0.
     90resulting string.  When the resulting string has fewer characters than the
     91absolute value of <width>, it is placed rightmost with the rest being
     92padded with <char>s, if <width> is positive, or it is placed leftmost with
     93the rest being padded with <char>s, if <width> is negative, or it is
     94placed in the center (near to right in case of positive <width>, or near
     95to left in case of negative <width>) with the rest being padded with
     96<char>s, if <width> is an inexact integer.  On the other hand, when the
     97resulting string has more characters than the absolute value of <width>,
     98lthe <width> is ignored.  The default value is 0.
    10399
    1041003.  The <writer> is a procedure of two arguments; <object> and a string port.
    105     It writes <object> to the string port.  The default value is DISPLAY
    106     procedure.  If you want any objects to be displayed in your own way, you
    107     have to define your own <writer>.  Otherwise, they are displayed simply in
    108     their evaluated forms.  When <writer> except DISPLAY and WRITE procedures
    109     is used, the optional arguments that are effective only for the number type
    110     of <object> become ineffective.
     101It writes <object> to the string port.  The default value is DISPLAY
     102procedure.  If you want any objects to be displayed in your own way, you
     103have to define your own <writer>.  Otherwise, they are displayed simply in
     104their evaluated forms.  When <writer> except DISPLAY and WRITE procedures
     105is used, the optional arguments that are effective only for the number type
     106of <object> become ineffective.
    111107   
    1121084.  The <port> is an output port or a boolean.  If an output port is specified,
    113     the resulting string is output into the port.  If <port> is #t, the output
    114     port is current output port.  If <port> is #f, the resulting string is
    115     returned.  The default value is #f.
     109the resulting string is output into the port.  If <port> is #t, the output
     110port is current output port.  If <port> is #f, the resulting string is
     111returned.  The default value is #f.
    116112
    1171135.  The <char> is a padding character.  The default value is #\space.
    118114
    1191156.  The <take> is a pair whose car and cdr values are exact integers or
    120     strings or procedures; m and n, and the absolute values of m and n are M
    121     and N, respectively.
    122     First,
    123     When the car element is an exact integer, the resulting string takes from
    124     the left m-characters, if it is positive, or all the characters but
    125     M-characters, if non-positive.
    126     When the car element is a string, the string is prefixed.
    127     When the car element is a procedure, the procedure takes a string argument
    128     and returns a string as a pipe.
    129     Second,
    130     When the cdr element is an exact integer, the resulting string takes from
    131     the right n-characters of the string that is processed by the car element,
    132     if it is positive, or all the characters but N-characters, if non-positive.
    133     When the cdr element is a string, the string is postfixed to the string
    134     that is processed by the car element.
    135     When the cdr element is a procedure, the procedure takes the string
    136     processed by the car element as an argument and returns a string.
     116strings or procedures; m and n, and the absolute values of m and n are M
     117and N, respectively.
     118First,
     119When the car element is an exact integer, the resulting string takes from
     120the left m-characters, if it is positive, or all the characters but
     121M-characters, if non-positive.
     122When the car element is a string, the string is prefixed.
     123When the car element is a procedure, the procedure takes a string argument
     124and returns a string as a pipe.
     125Second,
     126When the cdr element is an exact integer, the resulting string takes from
     127the right n-characters of the string that is processed by the car element,
     128if it is positive, or all the characters but N-characters, if non-positive.
     129When the cdr element is a string, the string is postfixed to the string
     130that is processed by the car element.
     131When the cdr element is a procedure, the procedure takes the string
     132processed by the car element as an argument and returns a string.
    137133   
    1381347.  The <separator> is a vector whose first element is a string serving as a
    139     separator and second element is a non-zero exact integer; n, and the
    140     absolute value of n is N.  The resulting string is separated in every
    141     N-characters of the resulting string from right end, if n is positive, or
    142     from left end, if n is negative.  Even if n is a negative integer, its
    143     absolute value is used for the number type of <object>.  When the integer
    144     is omitted, the <separator> is effective only for the number type of
    145     <object> and its default value is 3.
     135separator and second element is a non-zero exact integer; n, and the
     136absolute value of n is N.  The resulting string is separated in every
     137N-characters of the resulting string from right end, if n is positive, or
     138from left end, if n is negative.  Even if n is a negative integer, its
     139absolute value is used for the number type of <object>.  When the integer
     140is omitted, the <separator> is effective only for the number type of
     141<object> and its default value is 3.
    146142
    1471438.  The <point> is a symbol: fixed or float.  Each returns a string of decimal
    148     fraction or exponential representation.
     144fraction or exponential representation.
    149145
    1501469. The <precision> is a non-negative exact integer that specifies the number
    151    of decimal digits after a decimal point.
     147of decimal digits after a decimal point.
    152148
    15314910. The <radix> is a symbol: binary, octal, decimal, or hexadecimal.  Each
    154     radix sign except decimal is prefixed to the resulting string.  The
    155     default value is decimal.
     150radix sign except decimal is prefixed to the resulting string.  The
     151default value is decimal.
    156152
    15715311. If <sign> is a symbol that takes the form of 'sign, and <object> is a
    158     positive number without a positive sign, the positive sign is prefixed to
    159     the resulting string.
     154positive number without a positive sign, the positive sign is prefixed to
     155the resulting string.
    160156
    16115712. The <exactness> is a symbol: exact or inexact.  Each returns a string of
    162     exact or inexact representation.
     158exact or inexact representation.
    163159
    16416013. The resulting string is prefixed with <pre-string> and postfixed with
    165     <post-string>s.
     161<post-string>s.
    166162
    167163
Note: See TracChangeset for help on using the changeset viewer.