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

Comments

Projects
None yet
2 participants
@alexandru
Member

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.

@greenhat

This comment has been minimized.

Contributor

greenhat commented Jan 10, 2018

I'd like to take this one.

@alexandru

This comment has been minimized.

Member

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