Skip to content

preferThis/preferThat #170

Description

@sullyj3
preferThis :: These a a -> a
preferThis = mergeThese const

preferThat :: These a a -> a
preferThat = mergeThese $ flip const

These functions come in handy as arguments to alignWith in cases where you want to prioritize one side or the other. Would a PR for this be welcome?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions