From 5a44e8596007c1e21a974499b6bda91bd75e0425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 10 Apr 2023 20:27:42 +0200 Subject: [PATCH] Remove the documentation of deprecated dictionary implementation. --- doc/modules.md | 89 -------------------------------------------------- 1 file changed, 89 deletions(-) diff --git a/doc/modules.md b/doc/modules.md index fe72366..7f2f172 100644 --- a/doc/modules.md +++ b/doc/modules.md @@ -888,95 +888,6 @@ Within any of the ```body ...``` expressions the ```print-help``` procedure can be used to print the options, their argument names and help strings in a nice, human-readable format. -### Dictionary - -Simple key/value dictionary with most operations implemented in linear -time. The dictionary is internally represented as ```assq``` list and -is best suitable for symbols and numbers as keys. - - (make-dict) - -Creates an empty dictionary. - - (dict-has-key? d k) - -* ```d``` - the dictionary -* ```k``` - key to check - -Returns ```#t``` (true) if the dictionary ```d``` contains the key -```k```. - - (dict-ref d k [v]) - -* ```d``` - the dictionary -* ```k``` - the key to retrieve -* ```v``` - optional default value - -Retrieves given key ```k``` from the dictionary ```d```. - -If the key is not stored in the dictionary an error is raised unless -an optional value ```v``` is provided which is then returned in that -case. - - (dict-remove d k) - -* ```d``` - the dictionary -* ```k``` - the key to remove - -Removes the key ```k``` from the given dictionary ```d``` raising an -exception if the key is not stored in the dictionary. - - (dict-set d k v) - -* ```d``` - the dictionary -* ```k``` - key to (re)set -* ```v``` - the value to set - -If the dictionary ```d``` does not contain the key ```k```, adds the -value ```v``` into it under the given key. If the key is present, its -value is then replaced. - - (dict-keys d) - -* ```d``` - the dictionary - -Returns the list of keys contained in the dictionary ```d```. - - (dict-map proc d) - -* ```proc``` - procedure for processing -* ```d``` - the dictionary - -Returns a dictionary created by processing all elements of the -dictionary ```d``` using the procedure ```proc```. - -If the procedure accepts just one argument, only values are passed to -it. If the procedure accepts two arguments, both the key and value are -passed to it. In both cases, the procedure must produce only the value. - - (dict-filter pred? d) - -* ```pred?``` - predicate procedure -* ```d``` - the dictionary - -Returns a new dictionary created by keeping only the key/value pairs -from the dictionary ```d``` matching the predicate ```pred?```. - -If the procedure accepts just one argument, only values are passed to -it. If the procedure accepts two arguments, both the key and value are -passed to it. - - (dict-reduce init proc d) - -* ```init``` - arbitrary initial value -* ```proc``` - procedure for performing the reducing step -* ```d``` - the dictionary to reduce - -Iterates over the key/value pairs of given dictionary ```d``` -initializing the algorithm with the ```init``` value given. In each -step the procedure ```proc``` is called with three arguments: the -value accumulated so far, key and value. - ### Listing This module implements listing a text file with line numbers and