The documentation of Either.iif states:
If the condition satisfies, return the given A in left, otherwise, return the given B in right.
When reading the code or using common sense you will find that in reality, it should be:
If the condition satisfies, return the given B in right, otherwise, return the given A in left.
The documentation of
Either.iifstates:When reading the code or using common sense you will find that in reality, it should be: