Handbook
Glossary
resize-if-necessary ( wanted-n got-n seq -- seq' )
Vocabulary
io
.
private
Inputs
wanted-n
an
object
got-n
an
object
seq
an
object
Outputs
seq'
an
object
Definition
USING:
kernel
sequences.private
;
IN:
io.private
:
resize-if-necessary
( wanted-n got-n seq -- seq' )
2over
=
[
2nip
]
[
resize
nip
]
if
;
inline