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

stzListCounter

18 own methods · 6 forms written with extensions, listed under their method

the source: base/list/stzListCounter.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 stzListCounter([1, "two", 3, "four", 5]). 5 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 stzListCounter([1, "two", 3, "four", 5])
? o1.NumberOfItems()
#--> 5
composed from the signature, run for this page
QCSXTZZZIBWU
IsEmpty
content access
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
CountItemsW
count items satisfying a predicatealso written: CountIf · HowManyIf · NumberOfOccurrencesWin the section counting items verifying a given condition
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountItemsW("@item > 3")
#--> 1
composed from the signature, run for this page
no extension
HowManyItemsW
(no comment in the source: the name reads as a sentence) how many items win the section counting items verifying a given conditionno extension
NumberOfUniqueItemsW
(no comment in the source: the name reads as a sentence) number of unique items walso written: CountItemsUW · CountUniqueItemsWin the section counting items verifying a given condition
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.NumberOfUniqueItemsW("@item > 3")
#--> 1
composed from the signature, run for this page
no extension
HowManyUniqueItemsW
(no comment in the source: the name reads as a sentence) how many unique items win the section counting items verifying a given conditionno extension
InsertAfterW
inserting item after or before items verifying a given condition
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
o1.InsertAfterW("@item > 3", 2)
? @@( o1.Content() )
#--> [ 1, "two", 3, "four", 5, 2 ]
composed from the signature, run for this page
QCSXTZZZIBWU
InsertAfterWhere
inserting item after or before items verifying a given conditionno extension
InsertBeforeW
inserting item after or before items verifying a given condition
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
o1.InsertBeforeW("@item > 3", 2)
? @@( o1.Content() )
#--> [ 1, "two", 3, "four", 2, 5 ]
composed from the signature, run for this page
QCSXTZZZIBWU
InsertAtW
inserting item after or before items verifying a given condition
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
o1.InsertAtW("@item > 3", 2)
? @@( o1.Content() )
#--> [ 1, "two", 3, "four", 2, 5 ]
composed from the signature, run for this page
no extension
CountStrings
count items of specific typealso written: NumberOfStrings
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountStrings()
#--> 2
composed from the signature, run for this page
no extension
CountNumbers
count items of specific typealso written: NumberOfNumbers
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountNumbers()
#--> 3
composed from the signature, run for this page
no extension
CountLists
count items of specific typealso written: NumberOfLists
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountLists()
#--> 0
composed from the signature, run for this page
no extension
Count
count occurrences of a specific itemalso written: NumberOfOccurrencesOf
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.Count(3)
#--> 1
composed from the signature, run for this page
QCSXTZZZIBWU
CountEmptyItems
count empty / non-empty itemsalso written: NumberOfEmptyItems
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountEmptyItems()
#--> 0
composed from the signature, run for this page
no extension
CountNonEmptyItems
count empty / non-empty itemsalso written: NumberOfNonEmptyItems
composed example
o1 = new stzListCounter([1, "two", 3, "four", 5])
? o1.CountNonEmptyItems()
#--> 5
composed from the signature, run for this page
no extension