Previous Page Next Page Contents

Type::TableOfEntry -- type for testing tables with specified entries

Introduction

Type::TableOfEntry(obj_type) describes tables with entries of type obj_type.

Call(s)

testtype(obj, Type::TableOfEntry(obj_type))

Parameters

obj - any MuPAD object
obj_type - the type of the entries; can be an object of the library Type or one of the possible return values of domtype and type

Returns

see testtype

Related Functions

testtype, table, Type::TableOfIndex

Details

Example 1

The following table uses identifiers as keys and integers as entries:

>> T := table(a = 1, b = 2, c = 3, d = 4):
   testtype(T, Type::TableOfEntry(DOM_INT))
                                   TRUE

Type::TableOfEntry only checks the type of the entries, not the keys:

>> T := table(a = 1, b = 2, c = 3, d = 4):
   testtype(T, Type::TableOfEntry(DOM_IDENT))
                                   FALSE
>> delete T:

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000