commit f1031347b84bba628f1c7b2bd63f4a9a26d40ac0 parent 619d8d1272ae68711b9eab5dbefa4bccc429ae64 Author: AlexKnauth <alexander@knauth.org> Date: Sat, 16 Jan 2016 18:08:43 -0500 start on documentation for kw-hash-> Diffstat:
| M | kw-utils/docs/kw-hash.scrbl | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/kw-utils/docs/kw-hash.scrbl b/kw-utils/docs/kw-hash.scrbl @@ -56,3 +56,15 @@ like @racket[apply/kw-hash], but doesn't take a list argument at the end. returns a hash-table containing the given keyword arguments. } +@section{kw-hash contracts} + +@defmodule[kw-utils/kw-hash/contract] + +@defform*[#:literals (any) + [(kw-hash-> [arg/c ...] #:kws kw-hash/c any) + (kw-hash-> [arg/c ...] #:rest rest/c #:kws kw-hash/c any)]]{ +Produces a contract for functions that can accept arbitrary keyword arguments. +The contract puts the keywords in a hash table and checks that against the +@racket[kw-hash/c] contract. +} +