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 constructors to NonEmptyList[A] companion object #79

Closed
jdegoes opened this issue Apr 9, 2020 · 1 comment · Fixed by #84
Closed

Add constructors to NonEmptyList[A] companion object #79

jdegoes opened this issue Apr 9, 2020 · 1 comment · Fixed by #84
Assignees

Comments

@jdegoes
Copy link
Member

jdegoes commented Apr 9, 2020

For example:

def apply[A](a: A, as: A*): NonEmptyList[A] = ???

def fromCons[A](as: ::[A]): NonEmptyList[A] = ???

def fromIterable[A](a: A, as: Iterable[A]): NonEmptyList[A] = ???

def unfold[Z, A](start: Z)(project: Z => A)(iterate: Z => Option[Z]): NonEmptyList[A] = ???
...
@adamgfraser
Copy link
Contributor

Will do as part of overall implementation.

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.

2 participants