Changes

Jump to navigation Jump to search
947 bytes added ,  18:16, 11 March 2015
no edit summary
| '''Properties'''
|In contrast to {{Code|fn:trace()}}, the consumed expression will not be passed on.
|}
 
==prof:variables==
 
{{Mark|Introduced with Version 8.1}}:
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|prof:variables||empty-sequence()}}
|-
| '''Summary'''
|Prints a list of all current local and global variable assignments to standard error or, if the GUI is used, to the Info View.<br />As every query is optimized before being evaluated, not all of the original variables may be visible in the output. Moreover, many variables of function calls will disappear because functions are inlined. Function inlining can be turned off by setting the [[Optoins#INLINELIMIT|INLINELIMIT]] option to <code>0</code>.
|-
| '''Properties'''
|The function is ''non-deterministic'': evaluation order will be preserved by the compiler.
|-
| '''Examples'''
|
* {{Code|for $x in 1 to 2 return prof:variables()}} will dump the values of <code>$x</code> to standard error.
|}
=Changelog=
 
;Version 8.1
 
* Added: <code>[[#prof:variables|prof:variables]]</code>
;Version 7.7
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu