-
Notifications
You must be signed in to change notification settings - Fork 0
deleteRange
ffredyk edited this page Jul 23, 2026
·
1 revision
Array
Binary — <array> deleteRange [startIndex, count].
<array> deleteRange <array> // right side = [startIndex, count]
Removes a range of elements from the array. The right operand is an array of two numbers: [startIndex, count]. Removes count elements starting at startIndex. No return value (void).
Packs the parameters into an array on the right side (SQ# convention for 2+ parameter commands). Validates bounds, then calls List<Value>.RemoveRange(startIndex, count).
_arr = [1, 2, 3, 4, 5, 6];
_arr deleteRange [1, 2]; // remove 2 elements starting at index 1
// _arr is [1, 4, 5, 6]_arr = ["keep", "junk1", "junk2", "keep2"];
_arr deleteRange [1, 2]; // _arr is ["keep", "keep2"]// Remove first 3 elements
_arr deleteRange [0, 3];// Remove everything from index 5 to end
_arr deleteRange [5, count _arr - 5];Not thread-safe. Array must belong to the current scheduler.
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo