From 668522059ac537912558bb7833f1ee047606a830 Mon Sep 17 00:00:00 2001 From: Hans Dijkema Date: Mon, 29 Jun 2026 08:49:51 +0200 Subject: [PATCH] Updated documentation --- scrbl/class.scrbl | 5 +++++ scrbl/keystore.scrbl | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scrbl/class.scrbl b/scrbl/class.scrbl index 95e8c11..517c9f4 100644 --- a/scrbl/class.scrbl +++ b/scrbl/class.scrbl @@ -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. } +@defmethod[(count) number?]{ + +Returns the number of keys in the keystore. +} + @defmethod[(glob [pattern string?]) (listof any/c)]{ Returns keys matching @racket[pattern]. diff --git a/scrbl/keystore.scrbl b/scrbl/keystore.scrbl index c6d0d5d..3c36bbb 100644 --- a/scrbl/keystore.scrbl +++ b/scrbl/keystore.scrbl @@ -64,6 +64,11 @@ the symbol @racket['ks-nil] is returned. 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?]{ Removes the key from the store. The function always returns @racket[#t].