IsValueContainer
Checks if an object is a value container.
Syntax
-
IsValueContainer(X)
-
X
is any object
-
Description
IsValueContainer(X)
returns true
iff X
is a value container, that is, iff it can contain a collection of simple values of some kind, but not a collection of arbitrary objects.
IsValueContainer(X)
is a property of the class of X
.
The following classes are value containers:
-
real vectors (contains real numbers)
-
complex vectors (contains complex numbers)
-
real matrices (contains real numbers)
-
complex matrices (contains complex numbers)
-
strings (contains characters, which are technically strings of length 1)
-
pixmaps (contains pixels, which are technically colours)
-
tables (contains strings)
-
binary data (contains bytes, which are technically integers)