TemplateSequence

TemplateSequence[body,list]

represents an element of a template object that yields a sequence consisting of body applied to each element in list.

Details and Options

  • When a template containing TemplateSequence[body,list] is applied, the TemplateSequence is effectively expanded to Map[TemplateApply[body,#]&,list].
  • TemplateSequence has the following options:
  • InsertionFunction Inheritedfunction to apply before inserting each element
    Delimiters Sequence[]delimiters to insert between elements
    DefaultValue Sequence[]default content to render if the sequence is empty
  • In an XML template, TemplateSequence can be indicated using <wolfram:sequence>...</wolfram:sequence>.
  • A separator can be given by using attribute delimiters=''.

Examples

open allclose all

Basic Examples  (2)

Template sequences splice into lists:

Options  (3)

InsertionFunction  (1)

DefaultValue  (1)

Delimiters  (1)

Wolfram Research (2014), TemplateSequence, Wolfram Language function, https://reference.wolfram.com/language/ref/TemplateSequence.html.

Text

Wolfram Research (2014), TemplateSequence, Wolfram Language function, https://reference.wolfram.com/language/ref/TemplateSequence.html.

CMS

Wolfram Language. 2014. "TemplateSequence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TemplateSequence.html.

APA

Wolfram Language. (2014). TemplateSequence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TemplateSequence.html

BibTeX

@misc{reference.wolfram_2023_templatesequence, author="Wolfram Research", title="{TemplateSequence}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TemplateSequence.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_templatesequence, organization={Wolfram Research}, title={TemplateSequence}, year={2014}, url={https://reference.wolfram.com/language/ref/TemplateSequence.html}, note=[Accessed: 19-March-2024 ]}