Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/array
unsafeSwap
Function unsafeSwap
unsafeSwap
<
T
>
(
mutableValues
:
T
[]
,
i
:
number
,
j
:
number
)
:
T
[]
In-place swap elements at index
i
and
j
without bound checks.
Type Parameters
T
Parameters
mutableValues
:
T
[]
i
:
number
j
:
number
Returns
T
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
Skill
GitHub
Prelude API
Loading...
In-place swap elements at index
iandjwithout bound checks.