Handbook
Glossary
new-size ( old -- new )
Vocabulary
growable
Inputs
old
a positive integer
Outputs
new
a positive integer
Word description
Computes the new size of a resizable sequence.
Definition
USING:
math
;
IN:
growable
:
new-size
( old -- new )
1
+
2
*
;
inline