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

create cats.data.NonEmptyVector #1088

Closed
ceedubs opened this issue Jun 3, 2016 · 2 comments
Closed

create cats.data.NonEmptyVector #1088

ceedubs opened this issue Jun 3, 2016 · 2 comments

Comments

@ceedubs
Copy link
Contributor

ceedubs commented Jun 3, 2016

We seem to have arrived on a decision in #537 that NonEmptyVector should have its own data type. Let's go for it!

Since representing a Vector as case class NonEmptyVector[A](head: A, tail: Vector[A]) is not very efficient for quite a few operations, @non has suggested that we create a class that wraps a Vector that it knows to be non-empty. We can guarantee this by making the companion object method that creates an instance of the class from a Vector return an Option.

@zainab-ali
Copy link
Contributor

zainab-ali commented Jun 17, 2016

I'm working on this in #1137

@ceedubs
Copy link
Contributor Author

ceedubs commented Aug 3, 2016

Resolved by #1137

@ceedubs ceedubs closed this as completed Aug 3, 2016
@ceedubs ceedubs removed the ready label Aug 3, 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

2 participants