From a385f2e464c6448da6fc9cb3ce37df60e5d86fa9 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Mon, 17 Feb 2020 00:27:04 +0100 Subject: [PATCH] utils: Mention that auto-hash-ref/explicit and auto-hash-ref/: take 1 body. --- utils.rkt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.rkt b/utils.rkt index d195730..d91838d 100644 --- a/utils.rkt +++ b/utils.rkt @@ -23,6 +23,7 @@ ;;; (auto-hash-ref/explicit (ht a b) (+ a (* 2 b)))) ;;; 5 ;;; +;;; Note that only one expression can be supplied in the body. (define-syntax (auto-hash-ref/explicit stx) (syntax-parse stx [(_ (ht:id xs:id ...) body:expr) @@ -40,6 +41,8 @@ ;;; ;;; Note that the symbol :a is matched to the key 'a in the hash ;;; table. +;;; +;;; Note that only one expression can be supplied in the body. (define-syntax (auto-hash-ref/: stx) (syntax-parse stx [(_ ht:id body)