https://kotlinlang.org logo
#kotlintest-devs
Title
# kotlintest-devs
e

EarthCitizen

01/02/2020, 5:07 PM
There is another option …to add another implementation of
Gen
…something like:
Copy code
sealed class Gen
abstract class Arbitrary
abstract class Progression
abstract class AndThen(g1: Gen, g2: Gen)
s

sam

01/02/2020, 5:51 PM
I just thought as well we'd need another class for merge and another for zip and so on.
So not sure if further extending the ADT would work
4 Views