NAME
IsMatrix — Check whether list value is a matrix.
SYNOPSIS
IsMatrix ListValue
DESCRIPTION
Return Value
1 Value is a matrix.
0 Value is not a matrix.
Arguments
ListValueList to check whether it forms a matrix.
More Info
Here we mean matrix to be a list where every element is also list and all of them have the same length. It is like a table but we use the term matrix to make it clear we are not talking about a database table.

Note that we do consider the empty string to be a valid matrix (0x0).

For fully-featured matrix packages, you may want to check out matrix and report.


For information regarding exceptions / errors, see here.
EXAMPLES
% set MyMatrix {{1 2 3} {4 5 6} {7 8 9}}
{1 2 3} {4 5 6} {7 8 9}
% IsMatrix $MyMatrix
1
% set NotMatrix {1 {2 2} {3 3 3}}
1 {2 2} {3 3 3}
% IsMatrix $NotMatrix
0
SEE ALSO
report, matrix
KEYWORDS
check, list, matrix, validation, verification