Type::AnyType
-- a type
representing arbitrary MuPAD objectsType::AnyType
represents arbitrary MuPAD
objects.
testtype(obj, Type::AnyType)
obj |
- | any MuPAD object |
Type::ListOf
.assume
.Any object matches this type:
>> testtype(3, Type::AnyType), testtype(x, Type::AnyType), testtype(array(1..1, [x]), Type::AnyType), testtype(Dom::Matrix(), Type::AnyType)
TRUE, TRUE, TRUE, TRUE
This type is meant for constructing composite types. The following call tests, whether an object is a list with arbitrary elements:
>> testtype([3, x, array(1..1, [x]), Dom::Matrix()], Type::ListOf(Type::AnyType))
TRUE