RE: [F&O] fn:reverse missing?

> 
> I think F&O is lacking function for reversing sequence order. 
> Something like this would be useful:
> 
> fn:reverse($sourceSeq as item*) as item* 
> 
> It can be written as recursive function of course,
> but if there are functions like fn:exist in F&O,
> function like above could be added for clarity
> and possibilily of high optimization.
> 

I think this one might be a candidate for the "user-written functions"
appendix; I don't think it's needed sufficiently often to justify a core
function.

I would personally apply the same reasoning to fn:exists() and fn:empty() if
anyone were to propose them today.

Michael Kay

Received on Monday, 2 June 2003 08:20:12 UTC