Skip to content
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

Bitraverse type class #800

Closed
adelbertc opened this issue Jan 13, 2016 · 5 comments
Closed

Bitraverse type class #800

adelbertc opened this issue Jan 13, 2016 · 5 comments

Comments

@adelbertc
Copy link
Contributor

No description provided.

@ceedubs
Copy link
Contributor

ceedubs commented Feb 3, 2016

This would extend Bifoldable, which it seems like people have agreed on adding in #94 but that nobody has gotten around to yet.

@ceedubs
Copy link
Contributor

ceedubs commented Feb 3, 2016

oh and 👍 :)

@adelbertc
Copy link
Contributor Author

Does anyone have a use case for this?

@travisbrown
Copy link
Contributor

I've used both bisequence and bitraverse fairly often, for things like a more generic zip:

scala> import scalaz._, Scalaz._
import scalaz._
import Scalaz._

scala> (some('a'), some(1)).bisequenceU
res0: Option[(Char, Int)] = Some((a,1))

…or printing / logging both sides of an option, etc.

@adelbertc
Copy link
Contributor Author

working on this

@non non closed this as completed in 23550df Feb 26, 2016
non added a commit that referenced this issue Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants