Add doc examples for flatten-begin

This commit is contained in:
Asumu Takikawa 2014-07-22 17:22:42 -04:00
parent 041c2b1a07
commit be54163763

View File

@ -15,7 +15,13 @@
Extracts the sub-expressions from a @racket[begin]-like form,
reporting an error if @racket[stx] does not have the right shape
(i.e., a syntax list). The resulting syntax objects have annotations
transferred from @racket[stx] using @racket[syntax-track-origin].}
transferred from @racket[stx] using @racket[syntax-track-origin].
@examples[#:eval flatten-eval
(flatten-begin #'(begin 1 2 3))
(flatten-begin #'(begin (begin 1 2) 3))
(flatten-begin #'(+ (- 1 2) 3))
]}
@defproc[(flatten-all-begins [stx syntax?]) (listof syntax?)]{