Duck util-format.

This commit is contained in:
Dominik Pantůček 2023-07-06 18:36:05 +02:00
parent ea6aaceff5
commit d4657ad3b6
5 changed files with 33 additions and 21 deletions

View file

@ -122,7 +122,7 @@ Returns a dictionary with the following keys:
* ```fname``` - file name (path) relative to the git repository
Returns annotated source with information about originating commits
for each line.
for each line represented by dictionary with keys from git output.
## util-io [module]
@ -340,3 +340,19 @@ Returns the (possibly improper) list of arguments the procedure
```proc``` accepts. If it accepts arbitrary number of arguments, it is
signalled by simple symbol instead of pair at the last position. If it
accepts an exact number of arguments, it returns a proper list.
## util-format [module]
(import util-format)
A simple module with less-common formatting functions.
### format-amount [procedure]
(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
"--".