Skip to end of banner
Go to start of banner

subarray

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Availability

This routine is available starting with katl-commons 3.0.1.

Syntax

subarray(arr, start, end)

Description

Returns an array starting with index start and ending at index end

Parameters

Parameter name

Type

Required

Description

arr

array

Yes

The array.

startnumberYesThe start index
endnumberYesThe stop index

Return Type

array

Example

string [] firstFollowers = subarray(watchers, 1, 3); //assume the length of watchers >= 3


See also

  • No labels