Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

RepeatingElement

RepeatingElement[spec]
represents an element that can be arbitrarily repeated in an interpreter or form specification.

RepeatingElement[spec,max]
represents an element that can appear at most max times in a form.

RepeatingElement[spec,{min,max}]
represents an element that can appear between min and max times.

RepeatingElement[spec,{n,{min,max}}]
represents an element that initially appears n times in a form.

RepeatingElement[spec,{{i,n},{min,max}}]
represents an element where i takes successive values.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

RepeatingElement can be used in FormFunction to repeat a field:

In[1]:=
Click for copyable input

RepeatingElement fields can also be filled programmatically:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Since Interpreter will map on lists, it is not necessary to specify RepeatingElement at the top level of the specification:

In[1]:=
Click for copyable input
Out[1]=

RepeatingElement can be used to limit the number of elements:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2015
(10.1)