Effect Schema to Equivalence
The Schema.equivalence
function allows you to generate an Equivalence based on a schema definition.
This function is designed to compare data structures for equivalence according to the rules defined in the schema.
Example
You can define how equivalence is generated by utilizing the equivalence
annotation in your schema definitions.
Example
In this setup, the equivalence
annotation takes any type parameters provided (typeParameters
) and two values for comparison, returning a boolean based on the desired condition of equivalence.