Document io and tag utils.
This commit is contained in:
parent
dc82ba720c
commit
d2eed31892
1 changed files with 31 additions and 0 deletions
31
doc/utils.md
31
doc/utils.md
|
@ -10,6 +10,8 @@ The modules are listed in alphabetical order.
|
|||
|
||||
### CSV
|
||||
|
||||
(import util-csv)
|
||||
|
||||
This module provides a very simple, incomplete and incorrect but fast
|
||||
CSV loader.
|
||||
|
||||
|
@ -31,6 +33,24 @@ Splits given loaded CSV into two tables at the first empty row.
|
|||
|
||||
### IO
|
||||
|
||||
(import util-io)
|
||||
|
||||
Module implementing advanced I/O.
|
||||
|
||||
(read-lines/no-bom port)
|
||||
|
||||
* ```port``` - an input port
|
||||
|
||||
Reads lines using ```read-lines``` and if the first line contains
|
||||
UTF-8 BOM, removes it.
|
||||
|
||||
(get-process-output-lines cmd)
|
||||
|
||||
* ```cmd``` - a string with the command
|
||||
|
||||
Returns a list of strings representing all the lines produced by
|
||||
running the command given.
|
||||
|
||||
### List
|
||||
|
||||
(import util-list)
|
||||
|
@ -72,6 +92,17 @@ remainder with leading whitespace removed.
|
|||
|
||||
### Tag
|
||||
|
||||
(import util-tag)
|
||||
|
||||
A unifying module for compound data structures tagging.
|
||||
|
||||
(make-tag name)
|
||||
|
||||
* ```name``` - unquoted symbol to base the tag on
|
||||
|
||||
Creates a unique and collision free symbol to identify compound data
|
||||
structures based on lists and pairs.
|
||||
|
||||
### Time
|
||||
|
||||
(import util-time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue