List.subArray

Generate and return an array from the specified portion of the list.

interface List(T)
T[]
subArray
@nogc
(
size_t indexFrom
,
size_t toIndex
)

Parameters

indexFrom
Type: size_t

the initial index from which to start the array

toIndex
Type: size_t

the final index from which to finish the array

Return Value

Type: T[]

the array specified by the range of index

Meta