Handbook
Glossary
exchange-unsafe ( m n seq -- )
Vocabulary
sequences
.
private
Inputs
m
a non-negative integer
n
a non-negative integer
seq
a mutable sequence
Outputs
None
Word description
Unsafe variant of
exchange
that does not perform bounds checks.
Definition
USING:
kernel
;
IN:
sequences.private
:
exchange-unsafe
( m n seq -- )
[
[
nth-unsafe
]
curry
bi@
]
[
[
set-nth-unsafe
]
curry
bi@
]
3bi
;
inline