Document new utils.
This commit is contained in:
parent
262110a000
commit
e31c0a6e90
1 changed files with 32 additions and 2 deletions
34
doc/utils.md
34
doc/utils.md
|
@ -231,7 +231,17 @@ process output.
|
|||
|
||||
### Keyword Arguments
|
||||
|
||||
TODO
|
||||
(import util-kwargs)
|
||||
|
||||
A simple module providing convenient syntax for defining procedures
|
||||
with keyword arguments with default values.
|
||||
|
||||
(define-kwproc (name arg ... (#:kw binding [default]) ...) body ...)
|
||||
|
||||
Defines new procedure ```name``` with positional arguments ```arg
|
||||
...``` and optional keyword arguments with implicit default value
|
||||
```#f``` or any specific value given in the keyword argument
|
||||
specification.
|
||||
|
||||
### List
|
||||
|
||||
|
@ -449,7 +459,27 @@ Returns true if the sets contain exactly the same values.
|
|||
|
||||
### Stdout
|
||||
|
||||
TODO
|
||||
(import util-stdout)
|
||||
|
||||
Very simple module wrapping standard output.
|
||||
|
||||
(*stdout-quiet* [quiet])
|
||||
|
||||
A boolean parameter which disables all output from procedures in this
|
||||
module if its value is ```#t```.
|
||||
|
||||
(stdout-print . args)
|
||||
|
||||
If not quiet, passes ```args``` to ```print```.
|
||||
|
||||
(stdout-printf fmt . args)
|
||||
|
||||
If not quiet, prints formatted string ```fmt``` by applying ```args```
|
||||
to ```format``` procedure.
|
||||
|
||||
(stdout-newline)
|
||||
|
||||
If not quiet, calls ```(newline)```.
|
||||
|
||||
### String
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue