ExtendTo()
Sugar aliases over ExtendToPositionXT: the same operation but using the more natural "ExtendTo" / "Extend" naming. Default filler is the empty string.
Basic examples (2)
o1 = new stzList([ "A", "B", "C" ]) o1.ExtendTo(5) ? @@( o1.content() )
[ "A", "B", "C", "", "" ]
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 38_extending_a_list.ring(opens in a new tab)
o1 = new stzList(1 : 3) o1.ExtendTo(5) # extendto example 1 ? @@( o1.Content() )
[ 1, 2, 3, 0, 0 ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 153_extendto.ring(opens in a new tab)
Scope (2)
o1 = new stzList("A" : "C")
o1.ExtendTo(5)
# extendto example 1
? @@( o1.Content() )[ "A", "B", "C", "", "" ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 152_extendto.ring(opens in a new tab)
o1 = new stzList([ 1, 2, 3 ]) o1.ExtendTo(5) ? @@( o1.Content() ) o1 = new stzList([ "A", "B", "C" ]) o1.ExtendTo(5) ? @@( o1.Content() ) o1 = new stzList([ "A", "B", "C" ]) o1.ExtendToXT(5, :With = "♥") ? @@( o1.Content() )
[ 1, 2, 3, 0, 0 ] [ "A", "B", "C", "", "" ] [ "A", "B", "C", "♥", "♥" ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 330_extendto.ring(opens in a new tab)
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.

