Altova FlowForce Server 2025 Advanced Edition

Returns a partial list from a list.

 

Signature

slice(list:list, start:number, end:number=length(list)) -> list

 

Parameters

Name

Type

Description

list

list

Specifies the input list.

start

number

Specifies the zero-based index of the first list item to include in the slice.

end

number

Specifies the zero-based index of the first item to ignore in the slice.

 

Examples

The following expression returns list(2,3):

 

slice(list(1,2,3,4),1,3)

© 2018-2024 Altova GmbH