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.takeEveryNth #500

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

Comments

Projects
None yet
2 participants
@alexandru
Member

alexandru commented Jan 7, 2018

Need a new Iterant op that that emits every n-th event from the source, dropping intermediary events.

sealed abstract class Iterant[F[_], A] {
  // ...
  def takeEveryNth(n: Int)(implicit F: Sync[F]): Iterant[F, A]
}

See the observable implementation for inspiration.

@greenhat

This comment has been minimized.

Contributor

greenhat commented Jan 9, 2018

I'd like to take a stab at it.

@alexandru

This comment has been minimized.

Member

alexandru commented Jan 9, 2018

@greenhat go for it.

Checkout the advice I already gave on another PR here: #504

alexandru added a commit that referenced this issue Jan 10, 2018

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