Changes

Jump to navigation Jump to search
137 bytes added ,  11:47, 15 November 2019
|-
| '''Summary'''
|Returns a string representation of the type of a value as string:* The string representation includes the occurrence indicator.* The actual type of a value functions and nodes may be the stricter than the returned type.* For actual type checking, the standard functions expressions {{Code|typeswitch}} and {{Code|instance of}} should be usedinstead.
|-
| '''Examples'''
|
* <code>inspect:type(1 to 100)</code> returns <code>xs:integer+</code>
* <code>inspect:type(map { 'a': (1, 2)[. = 1] })</code> returns <code>map(*)</code> (a stricter type representation would be <code>map(xs:string, xs:string)</code>* <code>inspect:type(<a/>)</code> returns <code>element()</code> (a stricter type representation would be <code>element(a)</code>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu