6.2.901.900
5 kw-hash
5.1 kw-hash-lambda
(require kw-utils/kw-hash-lambda) | package: kw-utils |
syntax
(kw-hash-lambda formals #:kws kw-hash-id body-expr ...+)
roughly equivalent to
(keyword-lambda (kws kw-args . formals) (let ([kw-hash-id (keyword-apply make-kw-hash kws kw-args '())]) body ...))
Examples: | |||||||||||
|
5.2 kw-hash
(require kw-utils/kw-hash) | package: kw-utils |
procedure
(apply/kw-hash proc kw-hash v ... lst) → any
proc : procedure? kw-hash : (hash/c keyword? any/c) v : any/c lst : list?
like keyword-apply, but instead of taking the keywords and keyword
arguments as separate lists, apply/kw-hash takes them in a hash-table.
Based on https://gist.github.com/Metaxal/578b473bc48886f81123.
Examples: | ||||||||||
|
procedure
(app/kw-hash proc kw-hash v ...) → any
proc : procedure? kw-hash : (hash/c keyword? any/c) v : any/c
like apply/kw-hash, but doesn’t take a list argument at the end.
procedure
(make-kw-hash #:<kw> kw-arg ...) → (hash/c keyword? any/c)
kw-arg : any/c
returns a hash-table containing the given keyword arguments.