Skip to content

Splitter is a contravariant functor  #21

@eayus

Description

@eayus

The Splitter type seems to form a contravariant functor: given a splitter than works on a and a preprocessing step b -> a, we can get a splitter that works on b.

The package cotravariant adds a type class for this, though if you wanted to avoid dependencies a simple function would also work.

Is this something you would consider adding to this library? I'd be happy to implement it.

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