Skip to content

Comments

Wrap up and add Brennan's Either<A,B> work#106

Merged
dabrahams merged 18 commits intomasterfrom
either
Aug 12, 2020
Merged

Wrap up and add Brennan's Either<A,B> work#106
dabrahams merged 18 commits intomasterfrom
either

Conversation

@dabrahams
Copy link
Collaborator

@dabrahams dabrahams commented Aug 11, 2020

This work is based on #84

saeta and others added 18 commits June 15, 2020 13:01
…ining either to avoid reimplementing ConcatenatedCollection a bunch of times.
…graphs together without making a copy.

Also along with this change includes:
 1. A collection which concatenates two heterogeneous collections, so long as their element types are identical.
 2. DefaultInitializable conformances for a variety of fixed-width numerical types.
 3. An implementation of `Either` which is used to implement `UnionEdgeGraph` as well as `ConcatenatedCollection`.
 4. Tests for the above.

Note: The `UnionEdgeGraph` demonstrates why an `Either` type is necessary (assuming
we want to avoid duplicating the implementation of ConcatenatedCollection across
both the `VertexEdgeCollection` and `VertexInEdgeCollection` types).
Co-authored-by: Dave Abrahams <dabrahams@google.com>
Co-authored-by: Dave Abrahams <dabrahams@google.com>
Copy link
Owner

@saeta saeta left a comment

Choose a reason for hiding this comment

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

Sorry for not pushing this through. Thanks for taking it over the finish line.

@dabrahams dabrahams merged commit bce2936 into master Aug 12, 2020
@dabrahams dabrahams deleted the either branch August 12, 2020 14: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.

2 participants