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
I have a lot of code like
GetEntity(entityId) .Bind(entity => GetNestedEntity(entity.NestedEntityId).Map(nestedEntities => (entity, nestedEntities)); Result<Entity> GetEntity(EntityId id) => throw null!; Result<NestedEntity> GetNestedEntity(NestedEntityId id) => throw null!;
i.e. in further processing I need both income and outcome of Bind. I suggest to add a new method BindZip
Bind
BindZip
GetEntity(entityId) .BindZip(entity => GetNestedEntities(entityId)); // returns Result<(Entity First, NestedEntity Second)>
The text was updated successfully, but these errors were encountered:
It's not only me who needs such overload: #534
Sorry, something went wrong.
Sorry for the late reply. Sure, let's add this.
I think this issue can be closed since #540 has been merged?
No branches or pull requests
I have a lot of code like
i.e. in further processing I need both income and outcome of
Bind
. I suggest to add a new methodBindZip
The text was updated successfully, but these errors were encountered: