SquareRepeatingElement

SquareRepeatingElement[spec]

represents a square array of elements of type spec in an interpreter, API or form specification.

SquareRepeatingElement[spec,max]

represents a square array of elements of maximum size max×max.

SquareRepeatingElement[spec,{min,max}]

represents a square array of elements of size between min and max.

Details

Examples

open allclose all

Basic Examples  (3)

Use SquareRepeatingElement to interpret a square matrix of data:

SquareRepeatingElement fails on data that is not square:

Use it in an APIFunction to collect complex data:

Scope  (2)

The second argument is used to limit the size of the input:

Limit the minimum size of the array:

Properties & Relations  (3)

SquareRepeatingElement can be used in conjunction with any interpreter specification:

Including RepeatingElement:

And CompoundElement:

Possible Issues  (1)

Constructs like FormFunction and FormPage do not show a special interface for SquareRepeatingElement:

Use JSON to fill in the fields:

Introduced in 2017
 (11.1)