"Resizable sequences are implementing by having a wrapper object hold a reference to an underlying sequence, together with a fill pointer indicating how many elements of the underlying sequence are occupied. When the fill pointer exceeds the underlying sequence capacity, the underlying sequence grows."
{ $description "This word behaves as follows, depending on the relation between " { $snippet "n" } " and the length of the sequence:"
{ $list
{ "If " { $snippet "n" } " is less than the length of the sequence, does nothing." }
{ "If " { $snippet "n" } " exceeds the capacity of the underlying storage, the underlying storage is grown." }
{ "If " { $snippet "n" } " is greater than or equal to the length but less than the capacity of the underlying storage, the fill pointer is moved and nothing else is done." }
}
"In the case that new elements are added to the sequence (last two cases), the new elements are undefined." }
{ $notes "This word is used in the implementation of the " { $link set-nth } " generic for sequences supporting the resizable sequence protocol (see " { $link "growable" } ")."