Updated documentation

This commit is contained in:
2026-06-29 08:49:51 +02:00
parent 714df33b8b
commit 668522059a
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -54,6 +54,11 @@ Removes @racket[key] from the store and returns the object itself.
Returns @racket[#t] if @racket[key] exists, and @racket[#f] otherwise. Returns @racket[#t] if @racket[key] exists, and @racket[#f] otherwise.
} }
@defmethod[(count) number?]{
Returns the number of keys in the keystore.
}
@defmethod[(glob [pattern string?]) (listof any/c)]{ @defmethod[(glob [pattern string?]) (listof any/c)]{
Returns keys matching @racket[pattern]. Returns keys matching @racket[pattern].
+5
View File
@@ -64,6 +64,11 @@ the symbol @racket['ks-nil] is returned.
Returns @racket[#t] if the key exists, and @racket[#f] otherwise. Returns @racket[#t] if the key exists, and @racket[#f] otherwise.
} }
@defproc[(ks-key-count [ks keystore?]) number?]{
Returns the number of keys in the keystore.
}
@defproc[(ks-drop! [ks keystore?] [key any/c]) boolean?]{ @defproc[(ks-drop! [ks keystore?] [key any/c]) boolean?]{
Removes the key from the store. The function always returns @racket[#t]. Removes the key from the store. The function always returns @racket[#t].