Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

remove

remove

The remove function in XQuery is used to eliminate an item from a sequence located at a specified position. This function helps in restructuring sequences by removing items without altering the rest.

Syntax

fn:remove(target, position)
The following table describes the argument for this command:
Argument
Required/Optional
Description
target
Required
The sequence from which an item will be removed.
position
Optional
The position of the item in the sequence that should be removed. If
$pos
is less than 1 or greater than the number of items in the sequence, the sequence remains unchanged.

Return Value

Returns a sequence that includes all the items except for the one at the specified position. If the position is out of range, it returns the original sequence.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:remove( ('a', 'b', 'c'), 2)
('a', 'c')
fn:remove( ('a', 'b', 'c'), 10)
('a', 'b', 'c')
fn:remove( ('a', 'b', 'c'), 0)
('a', 'b', 'c')

0 COMMENTS

We’d like to hear from you!