Skip to content

Map Exception and inner value #79

@Clindbergh

Description

@Clindbergh

In the following code

IEnumerable<(A, Option<B, Exception>)> result = aValues
                .Select(a => (a, a.ComputeB())

I wish to transform the value (A, Option<B, Exception>) to Option<(A, B), (A, Exception)>.

For this operation a Map operation that transforms both, the inner value or the exception value is missing. It is only possible to specify one mapper instead of a mapper for both cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions