/** An array that will use the schema to compare items positionally. */
export function array<T, R>(schema: TransformObject<T, R> | TransformValue<T, R>): TransformArray<readonly T[], R[]> {
kind: TransformKind.Array,
itemSchema: schema,
extract: from => from?.map((item, i) => {
try {
return schema.extract(item);