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

Add toNev combinator in NonEmptyList #3422

Closed
saraiva132 opened this issue May 19, 2020 · 1 comment · Fixed by #3423
Closed

Add toNev combinator in NonEmptyList #3422

saraiva132 opened this issue May 19, 2020 · 1 comment · Fixed by #3423

Comments

@saraiva132
Copy link
Contributor

I wanted to get an instance of NonEmptyVector from a NonEmptyList and I noticed it was lacking that combinator.

Something like:

def toNev[B >: A](implicit order: Order[B]): NonEmptyVector[B] = 
    NonEmptyVector.fromVectorUnsafe(toList.toVector)

There might be more combinators missing.

@saraiva132
Copy link
Contributor Author

I can pick this up, I will scavenge a bit to see what else is missing

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 a pull request may close this issue.

1 participant