Entries in the queue must be structured items - that is, either JSON Objects or Arrays, or XML Nodes.
back
($name as xs:QName) as structured-item()?
Return the last item in the queue (the last added), without removing it. |
copy
($destName as xs:QName, $sourceName as xs:QName) as empty-sequence()
Copy all items from source queue to a destination queue. |
create
($name as xs:QName) as empty-sequence()
Create a queue with the name given. |
empty
($name as xs:QName) as xs:boolean
Checks if a queue exists and is empty. |
front
($name as xs:QName) as structured-item()?
Return the first item in the queue (the first added), without removing it. |
pop
($name as xs:QName) as structured-item()?
Return the first item in the queue, and remove it. |
push
($name as xs:QName, $value as structured-item()) as empty-sequence()
Add a new item to the queue; the queue will contain a copy of the given item. |
size
($name as xs:QName) as xs:integer
Count of items in the queue. |
declare function queue:back($name as xs:QName) as structured-item()?
declare %ann:sequential function queue:copy($destName as xs:QName, $sourceName as xs:QName) as empty-sequence()
If destination queue does not exist, it is created first.
If destination queue is not empty, the items are appended last.
declare %ann:sequential function queue:create($name as xs:QName) as empty-sequence()
declare function queue:empty($name as xs:QName) as xs:boolean
declare function queue:front($name as xs:QName) as structured-item()?
declare %ann:sequential function queue:pop($name as xs:QName) as structured-item()?
declare %ann:sequential function queue:push($name as xs:QName, $value as structured-item()) as empty-sequence()
declare function queue:size($name as xs:QName) as xs:integer