Description
The fn:reverse function reverses the order of the items in a sequence. These items may be nodes, or atomic values, or both.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type |
$arg |
item()* |
return value |
item()* |
ExamplesXPath Example | Results |
---|
reverse( (1, 2, 3, 4, 5) ) |
(5, 4, 3, 2, 1) |
reverse( (6, 2, 4) ) |
(4, 2, 6) |
reverse( () ) |
() |
See AlsoHistory |
Recommended Reading:
|