Find All Indices
PureFindAllIndicesReturns all indices where Value appears in the array.
Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Array | TArray<int> | — | Array parameter |
| Value | int | — | Value parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | TArray<int> | ReturnValue output |
Example Use Cases
Example 1
Find all positions of a specific tile type in a grid.
Example 2
Locate all instances of a specific item in inventory.