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

Adds Algebird-Bijection #181

Merged
merged 3 commits into from Jul 17, 2013
Merged

Adds Algebird-Bijection #181

merged 3 commits into from Jul 17, 2013

Conversation

sritchie
Copy link
Collaborator

Closes #173.

@sritchie
Copy link
Collaborator Author

@avibryant, let's go ahead and add the algebird bufferable implementations into this module.

* @author Sam Ritchie
*/

class BijectedSemigroup[T, U](implicit val sg: Semigroup[T], val bij: ImplicitBijection[T, U]) extends Semigroup[U] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make bij not val and instead add:

def bijection: Bijection[U, T] = bij.bijection.inverse

or Bijection[T, U] = bij.bijection if you prefer
because ImplicitBijections are kind of ugly plumbing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and similarly below (paging Dr. Macro).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

johnynek added a commit that referenced this pull request Jul 17, 2013
@johnynek johnynek merged commit 5b538f8 into develop Jul 17, 2013
@johnynek johnynek deleted the feature/algebird_bij branch July 17, 2013 16:01
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

Successfully merging this pull request may close these issues.

Move bijection-algebird here
2 participants