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)
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: