## `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

- The call `testtype(obj,` Type::TableOfEntry(obj_type`)`) checks, whether `obj` is a table and all entries of this table are of the type `obj_type`. If both conditions are met, the call returns `TRUE`, otherwise `FALSE`.
- This type expects one argument `obj_type`.
- The entries of a table are the right hand sides of the operands of a table.
- This type does not represent a property.

#### 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

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000