Array Comparison Helpers in Effect Library

does effect provide any helpers for comparing two arrays and giving a nicely formatted error if they don't match? Maybe something used by schema internally?

oh wait of course.. I just dynamically define a Schema:

yield* Schema.decodeUnknown(Schema.Tuple(...expectedStrings.map((s) => Schema.Literal(s))))(actualStrings)
Was this page helpful?