Basic examples (2)
o1 = new stzList([ 2, 4, 8 ]) ? o1.EachItemIsA(:Number) ? o1.ItemsAre([ :Positive, :Even, :Numbers ])
1 1
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 03_eachitemisa.ring(opens in a new tab)
? Q([ "واحد", "اثنان", "ثلاثة" ]).Are(:Strings) ? Q([ "واحد", "اثنان", "ثلاثة" ]).Are([ :Arabic, :Strings ]) ? Q([ "واحد", "اثنان", "ثلاثة" ]).Are([ :ArabicScript, :RightToLeft, :Texts ])
1 1 1
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 345_are.ring(opens in a new tab)
Scope (3)
# a Han text
? StzTextQ("朋友们").IsHanScript()
# all three are Han texts
? Q([ "你好", "亲", "朋友们" ]).Are([ :HanScript, :Texts ])1 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 994_ishanscript.ring(opens in a new tab)
? Q([ 1, 2, 3 ]).Are(:Numbers)
? Q([ -2, -4, -8 ]).Are([ :Even, :Negative, :Numbers ])
? Q([ 2, 4, 8 ]).Are([ :Even, :Numbers ])
? Q([ 2, 4, 8 ]).Are([ :Even, :Positive, :Numbers ])
? Q([ "(",";", ")" ]).Are([ :Punctuation, :Chars ])1 1 1 1 1
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 353_are.ring(opens in a new tab)
# chars of 12309 are numbers
? Q("12309").CharsQ().NumbrifiedQ().Are(:Numbers)
# chars of 248 are even positive numbers
? Q("248").CharsQ().NumberifiedQ().Are([ :Even, :Positive, :Numbers ])
# these are punctuation chars
? Q([ ",", ":", ";" ]).Are([ :Punctuation, :Chars ])1 1 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 451_what_you_think_is_what_you_write.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.AllItemsAreOfType · stzString.Chars

