Document new utils.

This commit is contained in:
Dominik Pantůček 2023-05-18 16:43:46 +02:00
parent 262110a000
commit e31c0a6e90

View file

@ -231,7 +231,17 @@ process output.
### Keyword Arguments ### 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 ### List
@ -449,7 +459,27 @@ Returns true if the sets contain exactly the same values.
### Stdout ### 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 ### String