Partition Array
PurePartitionArraySplits an array into two arrays: values less than pivot and values greater than or equal.
Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Array | TArray<int> | — | Array parameter |
| PivotValue | int | — | PivotValue parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| LessThan | TArray<int> | LessThan output |
| GreaterOrEqual | TArray<int> | GreaterOrEqual output |
Example Use Cases
Example 1
Separate enemies into close-range and long-range groups.
Example 2
Split items by rarity threshold.