Changes

Jump to navigation Jump to search
134 bytes added ,  11:42, 15 November 2019
=Documentation=
 
==inspect:type==
{{Mark|Introduced with Version 9.3:}}
 
==inspect:type==
{| width='100%'
* The string representation includes the occurrence indicator.
* The actual type of a value may be the stricter than the returned type.
* For actual type checking, the standard functions {{Code|typeswitch}} and {{Code|instance of}} should be used.
|-
| '''Examples'''
|{{Code|* <code>inspect:type(1 to 100)}} </code> returns {{Code|<code>xs:integer+}}</code>|{{Code|* <code>inspect:type(map { 'a': (1, 2)[. = 1] })}} </code> returns {{Code|<code>map(*)}} </code> (a stricter type representation would be {{Code|<code>map(xs:string, xs:string}}))</code>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu