Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Distinct operator #53

Open
jcornaz opened this issue Jul 16, 2019 · 1 comment
Open

Distinct operator #53

jcornaz opened this issue Jul 16, 2019 · 1 comment
Labels
up for grabs Good for newcomers

Comments

@jcornaz
Copy link
Owner

jcornaz commented Jul 16, 2019

Here is how the API could look like:

/**
 * Returns a generator that emits items of the upstream generator only once (based on result of `hashCode` and `equals` method)
 *
 * Be sure to not overuse it has it may slow down your tests
 */
fun <T> Generator<T>.distinct(): Generator<T> = TODO()
@jcornaz jcornaz added enhancement generator Add, fix or improve a random generator labels Jul 16, 2019
@jcornaz jcornaz modified the milestone: 0.1 Jul 16, 2019
@jcornaz jcornaz added operator and removed generator Add, fix or improve a random generator improvement labels Oct 24, 2019
@jcornaz jcornaz added the up for grabs Good for newcomers label Jul 28, 2020
@jcornaz jcornaz changed the title distinct operator Distinct operator Jul 28, 2020
@jcornaz jcornaz removed the operator label Jan 9, 2021
@ProdigSun
Copy link

I'm going to try to tackle this issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
up for grabs Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants