Skip to content

Support for Either? #6

@Boscop

Description

@Boscop

Please add an optional feature to enable support for Either from the either crate:

cond.as_either(x) // if cond { Either::Left(x) } else { Either::Right(x) }

It'd be useful e.g. for working with itertools.

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