How to use reverse operation in Function on sequence Using XPath in Xml
In this article I will explain reverse operation of function on sequence.
Introduction
The reverse operation of Function on sequence can be used to return the order of the items in reverse order. In the list of items the reverse function can be used to reverse the occurrence of the items in the list.
Syntax
reverse ((item,item,item,item))
|
Example
reverse ((11,12,13,14,15))
reverse (("ab","cd","ef" ))
reverse ((1,2,3,4,5))
reverse (("Richa"))
Output
(15,14,13,12,11)
("ef","cd","ab")
(5,4,3,2,1)
("Richa")
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here