Softanza
StartFrançais
Softanza
The library documents itself · Collections & objects

stzListTrimmer

21 own methods · 20 forms written with extensions, listed under their method

the source: base/list/stzListTrimmer.ring(opens in a new tab) · All classes · The area reference: Collections & objects

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 13 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzListTrimmer(["", "", "x", "y", "", ""]). 8 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
initializationno extension
Content
content accessno extension
NumberOfItems
content access
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? o1.NumberOfItems()
#--> 6
composed from the signature, run for this page
no extension
IsEmpty
content access
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
Trim
Same as TrimCS: Remove the runs of EMPTY items (0, empty string, empty sublist, false-object -- the monolith semantics) from BOTH ends; a fully-empty list keeps one item (mutating).
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
o1.Trim()
? @@( o1.Content() )
#--> [ "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
Trimmed
Same as TrimmedCS: A copy with the empty boundary runs trimmed; the original is unchanged.
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.Trimmed() )
#--> [ "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
TrimLeft
Same as TrimLeftCS: Remove the leading run of empty items (0, empty string, empty sublist, false-object) -- mutating.
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
o1.TrimLeft()
? @@( o1.Content() )
#--> [ "x", "y", "", "" ]
composed from the signature, run for this page
QCSXTZZZIBWU
TrimmedLeft
content access
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.TrimmedLeft() )
#--> [ "x", "y", "", "" ]
composed from the signature, run for this page
no extension
TrimRight
Same as TrimRightCS: Remove the trailing run of empty items (mutating).
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
o1.TrimRight()
? @@( o1.Content() )
#--> [ "", "", "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
TrimmedRight
content access
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.TrimmedRight() )
#--> [ "", "", "x", "y" ]
composed from the signature, run for this page
no extension
TrimItem
(no comment in the source: the name reads as a sentence) trim itemin the section trim specific itemQCSXTZZZIBWU
TrimItemFromLeft
(no comment in the source: the name reads as a sentence) trim item from leftin the section trim specific itemQCSXTZZZIBWU
TrimItemFromRight
(no comment in the source: the name reads as a sentence) trim item from rightin the section trim specific itemQCSXTZZZIBWU
Compact
Remove the blank strings (whitespace-only) and empty sublists throughout the list (mutating).
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
o1.Compact()
? @@( o1.Content() )
#--> [ "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
Compacted
compact (remove all empty items)
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.Compacted() )
#--> [ "x", "y" ]
composed from the signature, run for this page
no extension
Squeeze
Collapse each consecutive run of blank strings to a single one (mutating).QCSXTZZZIBWU
Squeezed
squeeze (remove consecutive duplicate empty items)
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.Squeezed() )
#--> [ "", "x", "y", "" ]
composed from the signature, run for this page
no extension
StripNulls
strip nulls (remove nulls and empty strings)
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
o1.StripNulls()
? @@( o1.Content() )
#--> [ "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
NullsStripped
strip nulls (remove nulls and empty strings)
composed example
o1 = new stzListTrimmer(["", "", "x", "y", "", ""])
? @@( o1.NullsStripped() )
#--> [ "x", "y" ]
composed from the signature, run for this page
no extension
TrimToSize
trim to size (keep only first n items)QCSXTZZZIBWU
TrimmedToSize
trim to size (keep only first n items)no extension