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

stzListClassifier

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

the source: base/list/stzListClassifier.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; 20 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"]). 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 stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.NumberOfItems()
#--> 6
composed from the signature, run for this page
no extension
IsEmpty
content access
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
Copy
content accessno extension
Classify
Group the items into classes of equal values.also written: Classified
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Classify() )
#--> [ [ "x", [ 1, 3, 5 ] ], [ "y", [ 2, 6 ] ], [ "z", [ 4 ] ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
Classes
The distinct classes (values) of the list.
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Classes() )
#--> [ "x", "y", "z" ]
composed from the signature, run for this page
no extension
ClassifyBy
Group the items into classes by the given expression.also written: GroupBy
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.ClassifyBy("@item > 3") )
#--> [ [ "false", [ 1, 2, 3, 4, 5, 6 ] ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
Parts
Same as PartsCS: Same as Classify: Group the items into classes of equal values.
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Parts() )
#--> [ [ "x", [ 1, 3, 5 ] ], [ "y", [ 2, 6 ] ], [ "z", [ 4 ] ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
NumberOfClasses
How many distinct classes the items form.
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.NumberOfClasses()
#--> 3
composed from the signature, run for this page
no extension
Frequencies
frequency of each itemalso written: Histogram
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Frequencies() )
#--> [ [ "x", 3 ], [ "y", 2 ], [ "z", 1 ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
MostFrequent
most / least frequent
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.MostFrequent()
#--> x
composed from the signature, run for this page
no extension
LeastFrequent
most / least frequent
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.LeastFrequent()
#--> z
composed from the signature, run for this page
no extension
Partition
partition into n groups
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Partition(2) )
#--> [ [ "x", "y", "x" ], [ "z", "x", "y" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
ItemsAppearingNTimes
items appearing exactly n timesalso written: ItemsWithFrequency
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.ItemsAppearingNTimes(2) )
#--> [ "y" ]
composed from the signature, run for this page
no extension
ItemsAppearingMoreThanNTimes
items appearing more/less than n times
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.ItemsAppearingMoreThanNTimes(2) )
#--> [ "x" ]
composed from the signature, run for this page
no extension
ItemsAppearingLessThanNTimes
items appearing more/less than n times
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.ItemsAppearingLessThanNTimes(2) )
#--> [ "z" ]
composed from the signature, run for this page
no extension
FrequencyOf
frequency of a specific itemalso written: HowMany
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? o1.FrequencyOf("tea")
#--> 0
composed from the signature, run for this page
no extension
Mode
mode -- most common items (all ties)
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Mode() )
#--> [ "x" ]
composed from the signature, run for this page
no extension
Bisect
bisection -- split into halves
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Bisect() )
#--> [ [ "x", "y", "x" ], [ "z", "x", "y" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU
FirstHalf
bisection -- split into halves
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.FirstHalf() )
#--> [ "x", "y", "x" ]
composed from the signature, run for this page
QCSXTZZZIBWU
SecondHalf
bisection -- split into halves
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.SecondHalf() )
#--> [ "z", "x", "y" ]
composed from the signature, run for this page
QCSXTZZZIBWU
PartitionWhere
Same as PartitionW: Partition the items into [satisfying, not-satisfying] by the W condition.no extension
SplitW
Same as PartitionW: Partition the items into [satisfying, not-satisfying] by the W condition.no extension
Chunks
chunk -- split into groups of size nalso written: SplitToPartsOfNItems
composed example
o1 = new stzListClassifier(["x", "y", "x", "z", "x", "y"])
? @@( o1.Chunks(2) )
#--> [ [ "x", "y" ], [ "x", "z" ], [ "x", "y" ] ]
composed from the signature, run for this page
QCSXTZZZIBWU