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 Iterant.takeWhileWithIndex #497

Closed
alexandru opened this issue Jan 7, 2018 · 2 comments
Closed

Add Iterant.takeWhileWithIndex #497

alexandru opened this issue Jan 7, 2018 · 2 comments

Comments

@alexandru
Copy link
Member

Similar with issue #496 we need a takeWhileWithIndex on Iterant that takes elements for as long as the given predicate returns true:

sealed abstract class Iterant[F[_], A] {
  // ...
  def takeWhileWithIndex(p: (A, Int) => Boolean)(implicit F: Sync[F]): Iterant[F, A]
}

The implementation should be very similar actually.

@greenhat
Copy link
Contributor

I'd like to take this one.

@alexandru
Copy link
Member Author

@greenhat sure, go for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants