HasSameTypeAs()
SAME SHAPE, SAME OMISSION. stzObject.HasSameTypeAs(p) answers isObject(p), and each wrapper overrides it to test the type it WRAPS -- stzNumber asks isNumber, stzString asks isString. stzList never asked isList, so comparing a stzList to a plain list said "different type", and IsStrictlyEqualTo() -- the conjunction of same type, same content and same order -- could never be true for the one comparison it exists to make.
Basic examples (1)
o1 = new stzList([ "a", "b", "c" ]) ? o1.IsStrictlyEqualTo([ "a", "b", "c" ]) ? o1.HasSameTypeAs([ "a", "b", "c" ]) ? o1.HasSameContentAs([ "a", "b", "c" ]) ? o1.HasSameSortingOrderAs([ "a", "b", "c" ])
1 1 1 1
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 457_isstrictlyequalto.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.HasSameContentAs · stzList.HasSameSortingOrderAs · stzList.IsStrictlyEqualTo

