-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
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
Splitter is a contravariant functor #21
Comments
Hi @eayus , thanks for this suggestion! I definitely do not want to add a dependency on the However, I think you are right that |
I agree and think that those are sensible names for the functions. I'll try to get around to submitting a PR in the next few days. |
|
The
Splitter
type seems to form a contravariant functor: given a splitter than works ona
and a preprocessing stepb -> a
, we can get a splitter that works onb
.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.
The text was updated successfully, but these errors were encountered: