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

stzListGetter

25 own methods · 11 forms written with extensions, listed under their method

the source: base/list/stzListGetter.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; 15 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzListGetter(["a", "b", "c", "d", "e"]). 10 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
(no comment in the source: the name reads as a sentence) contentin the section content accessQCSXTZZZIBWU
List
(no comment in the source: the name reads as a sentence) listin the section content accessno extension
NumberOfItems
(no comment in the source: the name reads as a sentence) number of itemsin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.NumberOfItems()
#--> 5
composed from the signature, run for this page
no extension
IsEmpty
(no comment in the source: the name reads as a sentence) is emptyin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
NthItem
(no comment in the source: the name reads as a sentence) nth itemin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.NthItem(2)
#--> b
composed from the signature, run for this page
no extension
FirstItem
(no comment in the source: the name reads as a sentence) first itemin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.FirstItem()
#--> a
composed from the signature, run for this page
no extension
LastItem
(no comment in the source: the name reads as a sentence) last itemin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.LastItem()
#--> e
composed from the signature, run for this page
no extension
CentralItem
(no comment in the source: the name reads as a sentence) central itemin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? o1.CentralItem()
#--> c
composed from the signature, run for this page
no extension
NFirstItems
The first n items of the list.also written: Headin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.NFirstItems(2) )
#--> [ "a", "b" ]
composed from the signature, run for this page
QCSXTZZZIBWU
NLastItems
The last n items of the list.also written: Tailin the section content access
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.NLastItems(2) )
#--> [ "d", "e" ]
composed from the signature, run for this page
QCSXTZZZIBWU
ItemsAtPositions
items at positionsalso written: ItemsAt
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.ItemsAtPositions([ 2, 3 ]) )
#--> [ "b", "c" ]
composed from the signature, run for this page
no extension
Section
section / rangealso written: ItemsBetween
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.Section(2, 5) )
#--> [ "b", "c", "d", "e" ]
composed from the signature, run for this page
QCSXTZZZIBWU
Range
section / range
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.Range(2, 5) )
#--> [ "b", "c", "d", "e" ]
composed from the signature, run for this page
no extension
UniqueItems
Same as UniqueItemsCS: The unique items of the list, in first-seen order.QCSXTZZZIBWU
RandomItem
One item picked at random.no extension
NRandomItems
n items picked at random.no extension
EveryNthItem
Every nth item of the list (n, 2n, 3n, ...).also written: EveryNth
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.EveryNthItem(2) )
#--> [ "b", "d" ]
composed from the signature, run for this page
QCSXTZZZIBWU
OnlyStrings
Only the STRING items of the list.no extension
OnlyNumbers
Only the NUMBER items of the list.no extension
OnlyLists
Only the LIST items of the list.no extension
OnlyChars
Only the CHAR items of the list.no extension
Pairs
pairs / triplets / windows
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.Pairs() )
#--> [ [ "a", "b" ], [ "b", "c" ], [ "c", "d" ], [ "d", "e" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
Triplets
pairs / triplets / windows
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.Triplets() )
#--> [ [ "a", "b", "c" ], [ "b", "c", "d" ], [ "c", "d", "e" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
SlidingWindow
pairs / triplets / windows
composed example
o1 = new stzListGetter(["a", "b", "c", "d", "e"])
? @@( o1.SlidingWindow(2) )
#--> [ [ "a", "b" ], [ "b", "c" ], [ "c", "d" ], [ "d", "e" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU