dev-srcloc
Matthew Butterick 8 years ago
parent ec6b858f39
commit 4f3e6ff4fc

@ -258,7 +258,7 @@ The error is cleared when the argument is capitalized, thus making it a wildcard
(good-squarer +10i)
]
You can use the special variable @racket[caller-stx] available only within the body of @racket[define-macro] — to access the original input argument to the macro.
You can use the special variable @racketfont{caller-stx} available only within the body of @racket[define-macro] — to access the original input argument to the macro.
@;{todo: fix this example. complains that caller-stx is unbound}
@examples[#:eval my-eval
@ -482,3 +482,16 @@ Convert @racket[values] to a simple list.
(values->list (split-at '(a b c d e f) 3))
]
}
@defmodule[br/datum]
@defproc[(datum? [x any/c]) boolean?]{
Return @racket[#t] if @racket[x] is a @racket[list?] or a @racket[symbol?].
@examples[#:eval my-eval
(datum? '(a b c d e f))
(datum? 'a)
(datum? "a")
]
}
Loading…
Cancel
Save