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.dropWhileWithIndex #496

alexandru opened this Issue Jan 7, 2018 · 2 comments


None yet
2 participants

alexandru commented Jan 7, 2018

Similar with the Observable equivalent, drops the longest prefix of elements that satisfy the given predicate:

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

For inspiration see the implementation of DropByPredicateWithIndexOperator, which is for Observable.


This comment has been minimized.


Avasil commented Jan 11, 2018

I can take this one unless someone is already working on it


This comment has been minimized.


alexandru commented Jan 11, 2018

@Avasil go for it.

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