Types()
Types(): map ring_type over the items, return the list of type tags. "STRING", "NUMBER", "LIST", "OBJECT". Used by the RepeatedInAPair narrative tests on stzObject.
Basic examples (2)
? @@( Q([ "AB", 12, ["A", "B"] ]).TypesXT() )
[ [ "AB", "STRING" ], [ 12, "NUMBER" ], [ [ "A", "B" ], "LIST" ] ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 334_typesxt.ring(opens in a new tab)
? @@( StzListQ([ "a", 1, "b", 2, "c", 3 ]).Types() ) + NL ? StzListQ([ "a", 1, "b", 2, "c", 3 ]).UniqueTypes()
[ "STRING", "NUMBER", "STRING", "NUMBER", "STRING", "NUMBER" ] STRING NUMBER
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 540_types.ring(opens in a new tab)
Scope (1)
o1 = new stzList([ 1, 2, 3, "A", "B", "C", 7, 8, 1:3, 4:8, 9:12, "D", "E", 4:8, 11, 12, NullObject(), TrueObject(), FalseObject() ]) ? o1.TypesU() ? @@XT( o1.ItemsAndTheirTypes(), NL, TAB ) ? @@XT( o1.TypesAndTheirSections(), NL, TAB ) # same as TypesZZ()
NUMBER STRING LIST OBJECT [ [ 1, "NUMBER" ], [ 2, "NUMBER" ], [ 3, "NUMBER" ], [ "A", "STRING" ], [ "B", "STRING" ], [ "C", "STRING" ], [ 7, "NUMBER" ], [ 8, "NUMBER" ], [ [ 1, 2, 3 ], "LIST" ], [ [ 4, 5, 6, 7, 8 ], "LIST" ], [ [ 9, 10, 11, 12 ], "LIST" ], [ "D", "STRING" ], [ "E", "STRING" ], [ [ 4, 5, 6, 7, 8 ], "LIST" ], [ 11, "NUMBER" ], [ 12, "NUMBER" ], [ @nullobject, "OBJECT" ], [ @trueobject, "OBJECT" ], [ @falseobject, "OBJECT" ] ] [ [ "NUMBER", [ [ 1, 3 ], [ 7, 8 ], [ 15, 16 ] ] ], [ "STRING", [ [ 4, 6 ], [ 12, 13 ] ] ], [ "LIST", [ [ 9, 11 ], [ 14, 14 ] ] ], [ "OBJECT", [ [ 17, 19 ] ] ] ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 31_typesu.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.
See also
- The class stzList
- The area's reference: Collections & objects
- The other methods in these examples: stzList.ItemsAndTheirTypes · stzList.TypesAndTheirSections · stzList.UniqueTypes

