Document format module.

This commit is contained in:
Dominik Pantůček 2023-04-11 09:06:45 +02:00
parent f2389c963d
commit 97e31d5a81

View file

@ -138,6 +138,20 @@ Performs a reduce operation on the pairs of given dictionary using
accept three arguments: the value accumulated so far, the key and the accept three arguments: the value accumulated so far, the key and the
value. value.
### Format
(import util-format)
A simple module with less-common formatting functions.
(format-amount amt)
* ```amt``` - a number
Converts given number to a string with two-digit fractional
part. Should the fractional part be 0, it is replaced with the string
"--".
### IO ### IO
(import util-io) (import util-io)