public final class Variant
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <A> F<Gen<A>,Gen<A>> |
variant(long n)
A curried version of
variant(long, Gen) . |
static <A> Gen<A> |
variant(long n,
Gen<A> g)
Produces a generator that is independent of the given generator using the given value.
|
public static <A> Gen<A> variant(long n, Gen<A> g)
n
- The value to produce the new generator from.g
- The generator to produce the new generator from.public static <A> F<Gen<A>,Gen<A>> variant(long n)
variant(long, Gen)
.n
- The value to produce the new generator from.variant(long, Gen)
.