Take Array

Pure
TakeArray

Returns the first N elements of an array.

Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection

Inputs

NameTypeDefaultDescription
ArrayTArray<int>Array parameter
CountintCount parameter

Outputs

NameTypeDescription
ReturnValueTArray<int>ReturnValue output

Example Use Cases

Example 1

Get the top 10 scores from a leaderboard.

Example 2

Display only the first 5 items in a preview list.