ecl-logo Documentation

TypeP

TypeP[]pattern

returns a pattern which matches any defined type.

TypeP[type]pattern

returns a pattern which matches any defined types that are a sub-type of type.

TypeP[Object]pattern

returns a pattern which matches any defined Object types.

TypeP[Model]pattern

returns a pattern which matches any defined Model types.

Details

    Input
    Output

Examples

Basic Examples  (4)

Returns a pattern which matches any type:

Returns a pattern that matches any sub-types of the a defined Model type:

Returns a pattern that does not match a type that is not defined:

Does not evaluate if not given an expression in the form of an Object/Model type:

Additional Examples  (5)

Returns a pattern that matches any Model sub-types:

Returns a pattern that does not match any Object sub-types:

Returns a pattern that matches any number of specific types and their sub-types:

Returns a pattern that matches any Object sub-types:

Returns a pattern that does not match any Model sub-types: