Changes

Jump to navigation Jump to search
m
Added an example to hof:until to explain pre-fixed predicate evaluation
</pre>
returns {{Code|5.000000000053722}}.
 
* The evaluation of the predicate is pre-fixed thus every cycle starts with the evaluation of the predicate first.
<pre class="brush:xquery">
declare function local:pred($res){ true() };
declare function local:loop($val){ $val + 1 };
 
hof:until(local:pred#1, local:loop#1, 0)
</pre>
returns {{Code|0}}.
 
|}
administrator, editor
5

edits

Navigation menu