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

alexandru opened this Issue Jan 7, 2018 · 2 comments


None yet
2 participants

alexandru commented Jan 7, 2018

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.


This comment has been minimized.


greenhat commented Jan 10, 2018

I'd like to take this one.


This comment has been minimized.


alexandru commented Jan 10, 2018

@greenhat sure, go for it

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