Changeset 37805 in project


Ignore:
Timestamp:
07/28/19 20:16:48 (3 weeks ago)
Author:
Ivan Raikov
Message:

tabular doc fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/tabular

    r37804 r37805  
    1 = tabular
     1[[tags:egg]]
     2[[toc:]]
     3== tabular
    24
    35Parsing and formatting of tabular text data such as comma- and delimiter-separated values (CSV and DSV).
     
    1113=== Readers
    1214
    13 <procedure>
    14 reader:: INPUT [DELIMITER: #,] [EOL: "\n"] [COMMENT-CHAR: #f][NA: #f] [COLUMN-NAMES: #f] [COLUMN-WIDTHS: #f] [RETURN-NAMES: #f] -> READER STREAM
    15 </procedure>
     15<procedure>reader:: INPUT [DELIMITER: #,] [EOL: "\n"] [COMMENT-CHAR: #f][NA: #f] [COLUMN-NAMES: #f] [COLUMN-WIDTHS: #f] [RETURN-NAMES: #f] -> READER STREAM</procedure>
    1616
    1717Constructs a reader procedure for the given input format specification
     
    3434* Argument {{RETURN-NAMES}} specifies that each returned record will have the form of an alist with column name and value pairs. If {{COLUMN-NAMES}} is not provided, the column index will be used as key instead.
    3535
    36 <procedure>
    37 reader*:: INPUT [DELIMITER: #,] [EOL: "\n"] [COMMENT-CHAR: #f][NA: #f] [COLUMN-NAMES: #f] [COLUMN-WIDTHS: #f] [RETURN-NAMES: #f] -> READER
    38 </procedure>
    39 Constructs a reader generator procedure for the given input format specification and returns the reader procedure. The reader procedure is of the form {{LAMBDA () -> RECORD. It reads one record from the given input stream and by default returns the record as a list of values. If optional argument}}RETURN-NAMES{{is true, the record will be returned as an alist where the keys are column names (if}}COLUMN-NAMES` is provided) or indices, and the values are the column values.
     36<procedure>reader*:: INPUT [DELIMITER: #,] [EOL: "\n"] [COMMENT-CHAR: #f][NA: #f] [COLUMN-NAMES: #f] [COLUMN-WIDTHS: #f] [RETURN-NAMES: #f] -> READER</procedure>
     37
     38Constructs a reader generator procedure for the given input format
     39specification and returns the reader procedure. The reader procedure
     40is of the form {{LAMBDA () -> RECORD. It reads one record from the
     41given input stream and by default returns the record as a list of
     42values. If optional argument}}RETURN-NAMES{{is true, the record will
     43be returned as an alist where the keys are column names
     44(if}}COLUMN-NAMES` is provided) or indices, and the values are the
     45column values.
    4046
    4147* Argument {{INPUT}} is a string or a port.
     
    5056=== Writers
    5157
    52 <procedure>
    53 writer:: OUTPUT [DELIMITER: #,] [COLUMN-WIDTHS: #f] [ENDLINE: "\n"] -> WRITER
    54 </procedure>
    55 Constructs a writer procedure that writes out records according to the given output specification. The writer procedure is of the form {{LAMBDA RECORDS -> UNIT}}. Each record is represented as a list.
     58<procedure>writer:: OUTPUT [DELIMITER: #,] [COLUMN-WIDTHS: #f] [ENDLINE: "\n"] -> WRITER</procedure>
     59
     60Constructs a writer procedure that writes out records according to the
     61given output specification. The writer procedure is of the form
     62{{LAMBDA RECORDS -> UNIT}}. Each record is represented as a list.
    5663
    5764* Argument {{OUTPUT}} is a string file name or a port.
Note: See TracChangeset for help on using the changeset viewer.