slice

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > List Functions >

slice

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)


© 2019 Altova GmbH