Implement and document predicates for ldict and lset.

This commit is contained in:
Dominik Pantůček 2023-04-09 22:03:30 +02:00
parent 0d649c2fd0
commit c0cfa0721f
3 changed files with 26 additions and 0 deletions

View file

@ -49,6 +49,12 @@ populating it with initial data.
If only one argument is given, the procedure checks whether it is a
list of equality procedure and acts accordingly.
(ldict? v)
* ```v``` - any value
Returns ```#t``` if given value is a ldict.
(ldict-empty? ld)
* ```ld``` - a ldict instance
@ -213,6 +219,12 @@ This module implements linear-time set with custom comparator.
Creates new lset with given comparator.
(lset? v)
* ```v``` - any value
Returns ```#t``` if given value is a lset.
(lset-empty? ls)
* ```ls``` - lset instance