We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A good description of the issue can be found here:
In the example below, we have: Type: Either<RangedNumberValueFailuresAbstract<int>, int> If No Error: right(number) If Error: left(RangedNumberValueFailuresAbstract.invalidNumber(failedNumberValue: number)) If we need to access the failedNumberValue in (failedNumberValue: number), how would we do it?
In the example below, we have:
Either<RangedNumberValueFailuresAbstract<int>, int>
right(number)
left(RangedNumberValueFailuresAbstract.invalidNumber(failedNumberValue: number))
If we need to access the failedNumberValue in (failedNumberValue: number), how would we do it?
The text was updated successfully, but these errors were encountered:
A good answer to the issue can be found here:
In the latter, the failedNumberValue is accessed as follows: final actual = testClass.getValue.fold( (l) => (l as RangedNumberValueFailuresAbstract).failedNumberValue, (r) => r, );
In the latter, the failedNumberValue is accessed as follows:
final actual = testClass.getValue.fold( (l) => (l as RangedNumberValueFailuresAbstract).failedNumberValue, (r) => r, );
Sorry, something went wrong.
No branches or pull requests
A good description of the issue can be found here:
The text was updated successfully, but these errors were encountered: