They act like isSome/isOk, but also return the expected value.
Also, testName is now a genericvalue (to make it feel more like a value), and throwsT requires an explicit type argument.
The former is a breaking change (that is justified by the major version bump), and the latter is technically a breaking change as well, but more of an enforcement of how the function should have been used.
They act like
isSome
/isOk
, but also return the expected value. Also,testName
is now a genericvalue (to make it feel more like a value), andthrowsT
requires an explicit type argument. The former is a breaking change (that is justified by the major version bump), and the latter is technically a breaking change as well, but more of an enforcement of how the function should have been used.