Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Availability

This routine is available starting with SIL Engineā„¢ 3.0.1.

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=subarray+-+15480710
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

subarray(arr, start, end)

Package

array

Alias

Pkg Usage

subarray(arr, start, end)

Description

Excerpt
hiddentrue
Returns an array starting with index 'start' and ending at index 'end'.

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

arr

...

Array

Yes

Array.

start

...

Number

Yes

Start index.

end

...

Number

Yes

Stop index.

Return Type

arrayArray

Example

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

See also

Filter by label (Content by label)
showLabelsfalse
max

...

25
showSpacefalse
cqllabel = "array_

...

routine" and space = currentSpace ( )
labelsarray_routines