Dissolves a @racket[_tagged-xexpr] into its components and returns all three.
@examples[#:eval my-eval
@ -155,17 +155,17 @@ Like @racket[tagged-xexpr->values], but returns the three components in a list.
@defproc[
(tagged-xexpr-tag
[tx tagged-xexpr?])
xexpr-tag?]
tagged-xexpr-tag?]
@defproc[
(tagged-xexpr-attrs
[tx tagged-xexpr?])
xexpr-attr?]
tagged-xexpr-attr?]
@defproc[
(tagged-xexpr-elements
[tx tagged-xexpr?])
(listof xexpr-element?)]
(listof tagged-xexpr-element?)]
)]
Accessor functions for the individual pieces of a @racket[_tagged-xexpr].
@ -177,9 +177,9 @@ Accessor functions for the individual pieces of a @racket[_tagged-xexpr].
@defproc[
(make-tagged-xexpr
[tag symbol?]
[attrs xexpr-attrs? @(empty)]
[elements xexpr-elements? @(empty)])
[tag tagged-xexpr-tag?]
[attrs tagged-xexpr-attrs? @(empty)]
[elements tagged-xexpr-elements? @(empty)])
tagged-xexpr?]
Assemble a @racket[_tagged-xexpr] from its parts. If you don't have attributes, but you do have elements, you'll need to pass @racket[empty] as the second argument. Note that unlike @racket[xml->xexpr], if the attribute list is empty, it's not included in the resulting expression.
@ -194,8 +194,8 @@ Assemble a @racket[_tagged-xexpr] from its parts. If you don't have attributes,
Combine a series of attributes into a single @racket[_tagged-xexpr-attrs] item. This function addresses three annoyances that surface in working with tagged-xexpr attributes.
@ -210,11 +210,11 @@ Combine a series of attributes into a single @racket[_tagged-xexpr-attrs] item.