On Thu, Mar 28, 2024 at 07:33:51PM +0100, Christian Grün scripsit:
Hi Graydon,
Hi Christian,
Folks tell us it’s time to stop delaying BaseX 11… We’re trying hard.
I am generally in favour of 11, or I suppose 4, depending.
The good news: The only difference between hof:until [1] and fn:do-until [2] is the order of parameters. The following queries will do the same thing:
hof:until(function($a) { $a > 16 }, function($a) { $a * 2 }, 1) do-until(1, function($a) { $a * 2 }, function($a) { $a > 16 })
With fn:do-until, the input has moved to the first position, the action comes second and the predicate comes last.
Thank you!
That is helpful indeed. (Definitely my brain.)
And I can confirm it works for me with the current 11 beta.
-- Graydon