Hedgehog


GenExtensions Type

Namespace: Hedgehog.Linq

Assembly: Hedgehog.dll

Base Type: obj

Static members

Static member Description

GenExtensions.Apply(genFunc, genArg)

Full Usage: GenExtensions.Apply(genFunc, genArg)

Parameters:
    genFunc : Gen<Func<'T, 'TResult>>
    genArg : Gen<'T>

Returns: Gen<'TResult>

genFunc : Gen<Func<'T, 'TResult>>
genArg : Gen<'T>
Returns: Gen<'TResult>

GenExtensions.Array(gen, range)

Full Usage: GenExtensions.Array(gen, range)

Parameters:
Returns: Gen<'T[]>

gen : Gen<'T>
range : Range<int>
Returns: Gen<'T[]>

GenExtensions.Enumerable(gen, range)

Full Usage: GenExtensions.Enumerable(gen, range)

Parameters:
Returns: Gen<seq<'T>>

gen : Gen<'T>
range : Range<int>
Returns: Gen<seq<'T>>

GenExtensions.GenerateTree(gen)

Full Usage: GenExtensions.GenerateTree(gen)

Parameters:
    gen : Gen<'T>

Returns: Tree<'T>

gen : Gen<'T>
Returns: Tree<'T>

GenExtensions.List(gen, range)

Full Usage: GenExtensions.List(gen, range)

Parameters:
Returns: Gen<ResizeArray<'T>>

gen : Gen<'T>
range : Range<int>
Returns: Gen<ResizeArray<'T>>

GenExtensions.NoShrink(gen)

Full Usage: GenExtensions.NoShrink(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<'T>

gen : Gen<'T>
Returns: Gen<'T>

GenExtensions.NullReference(gen)

Full Usage: GenExtensions.NullReference(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<'T>

gen : Gen<'T>
Returns: Gen<'T>

GenExtensions.NullValue(gen)

Full Usage: GenExtensions.NullValue(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<Nullable<'T>>

gen : Gen<'T>
Returns: Gen<Nullable<'T>>

GenExtensions.RenderSample(gen)

Full Usage: GenExtensions.RenderSample(gen)

Parameters:
    gen : Gen<'T>

Returns: string

gen : Gen<'T>
Returns: string

GenExtensions.Resize(gen, size)

Full Usage: GenExtensions.Resize(gen, size)

Parameters:
Returns: Gen<'T>

gen : Gen<'T>
size : Size
Returns: Gen<'T>

GenExtensions.Sample(gen, size, count)

Full Usage: GenExtensions.Sample(gen, size, count)

Parameters:
    gen : Gen<'T>
    size : Size
    count : int

Returns: ResizeArray<'T>

gen : Gen<'T>
size : Size
count : int
Returns: ResizeArray<'T>

GenExtensions.SampleTree(gen, size, count)

Full Usage: GenExtensions.SampleTree(gen, size, count)

Parameters:
    gen : Gen<'T>
    size : Size
    count : int

Returns: ResizeArray<Tree<'T>>

gen : Gen<'T>
size : Size
count : int
Returns: ResizeArray<Tree<'T>>

GenExtensions.Scale(gen, scaler)

Full Usage: GenExtensions.Scale(gen, scaler)

Parameters:
    gen : Gen<'T>
    scaler : Func<int, int>

Returns: Gen<'T>

gen : Gen<'T>
scaler : Func<int, int>
Returns: Gen<'T>

GenExtensions.Select(genA, mapper, genB, genC, genD)

Full Usage: GenExtensions.Select(genA, mapper, genB, genC, genD)

Parameters:
    genA : Gen<'T>
    mapper : Func<'T, 'U, 'V, 'W, 'TResult>
    genB : Gen<'U>
    genC : Gen<'V>
    genD : Gen<'W>

Returns: Gen<'TResult>

genA : Gen<'T>
mapper : Func<'T, 'U, 'V, 'W, 'TResult>
genB : Gen<'U>
genC : Gen<'V>
genD : Gen<'W>
Returns: Gen<'TResult>

GenExtensions.Select(genA, mapper, genB, genC)

Full Usage: GenExtensions.Select(genA, mapper, genB, genC)

Parameters:
    genA : Gen<'T>
    mapper : Func<'T, 'U, 'V, 'TResult>
    genB : Gen<'U>
    genC : Gen<'V>

Returns: Gen<'TResult>

genA : Gen<'T>
mapper : Func<'T, 'U, 'V, 'TResult>
genB : Gen<'U>
genC : Gen<'V>
Returns: Gen<'TResult>

GenExtensions.Select(genA, mapper, genB)

Full Usage: GenExtensions.Select(genA, mapper, genB)

Parameters:
    genA : Gen<'T>
    mapper : Func<'T, 'U, 'TResult>
    genB : Gen<'U>

Returns: Gen<'TResult>

genA : Gen<'T>
mapper : Func<'T, 'U, 'TResult>
genB : Gen<'U>
Returns: Gen<'TResult>

GenExtensions.Select(gen, mapper)

Full Usage: GenExtensions.Select(gen, mapper)

Parameters:
    gen : Gen<'T>
    mapper : Func<'T, 'TResult>

Returns: Gen<'TResult>

gen : Gen<'T>
mapper : Func<'T, 'TResult>
Returns: Gen<'TResult>

GenExtensions.SelectMany(gen, binder, projection)

Full Usage: GenExtensions.SelectMany(gen, binder, projection)

Parameters:
    gen : Gen<'T>
    binder : Func<'T, Gen<'TCollection>>
    projection : Func<'T, 'TCollection, 'TResult>

Returns: Gen<'TResult>

gen : Gen<'T>
binder : Func<'T, Gen<'TCollection>>
projection : Func<'T, 'TCollection, 'TResult>
Returns: Gen<'TResult>

GenExtensions.SelectMany(gen, binder)

Full Usage: GenExtensions.SelectMany(gen, binder)

Parameters:
Returns: Gen<'U>

gen : Gen<'T>
binder : Func<'T, Gen<'U>>
Returns: Gen<'U>

GenExtensions.SelectRandom(gen, binder)

Full Usage: GenExtensions.SelectRandom(gen, binder)

Parameters:
Returns: Gen<'TResult>

gen : Gen<'T>
binder : Func<Random<Tree<'T>>, Random<Tree<'TResult>>>
Returns: Gen<'TResult>

GenExtensions.SelectTree(gen, binder)

Full Usage: GenExtensions.SelectTree(gen, binder)

Parameters:
Returns: Gen<'TResult>

gen : Gen<'T>
binder : Func<Tree<'T>, Tree<'TResult>>
Returns: Gen<'TResult>

GenExtensions.Shrink(gen, shrinker)

Full Usage: GenExtensions.Shrink(gen, shrinker)

Parameters:
    gen : Gen<'T>
    shrinker : Func<'T, ResizeArray<'T>>

Returns: Gen<'T>

gen : Gen<'T>
shrinker : Func<'T, ResizeArray<'T>>
Returns: Gen<'T>

GenExtensions.ShrinkLazy(gen, shrinker)

Full Usage: GenExtensions.ShrinkLazy(gen, shrinker)

Parameters:
    gen : Gen<'T>
    shrinker : Func<'T, seq<'T>>

Returns: Gen<'T>

gen : Gen<'T>
shrinker : Func<'T, seq<'T>>
Returns: Gen<'T>

GenExtensions.Some(gen)

Full Usage: GenExtensions.Some(gen)

Parameters:
Returns: Gen<'T>

gen : Gen<Option<'T>>
Returns: Gen<'T>

GenExtensions.String(gen, range)

Full Usage: GenExtensions.String(gen, range)

Parameters:
Returns: Gen<string>

gen : Gen<char>
range : Range<int>
Returns: Gen<string>

GenExtensions.ToGen(random)

Full Usage: GenExtensions.ToGen(random)

Parameters:
Returns: Gen<'T>

random : Random<Tree<'T>>
Returns: Gen<'T>

GenExtensions.ToRandom(gen)

Full Usage: GenExtensions.ToRandom(gen)

Parameters:
    gen : Gen<'T>

Returns: Random<Tree<'T>>

gen : Gen<'T>
Returns: Random<Tree<'T>>

GenExtensions.TryFinally(gen, after)

Full Usage: GenExtensions.TryFinally(gen, after)

Parameters:
Returns: Gen<'T>

gen : Gen<'T>
after : Action
Returns: Gen<'T>

GenExtensions.TryWith(gen, after)

Full Usage: GenExtensions.TryWith(gen, after)

Parameters:
Returns: Gen<'T>

gen : Gen<'T>
after : Func<exn, Gen<'T>>
Returns: Gen<'T>

GenExtensions.Tuple2(gen)

Full Usage: GenExtensions.Tuple2(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<'T * 'T>

gen : Gen<'T>
Returns: Gen<'T * 'T>

GenExtensions.Tuple3(gen)

Full Usage: GenExtensions.Tuple3(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<'T * 'T * 'T>

gen : Gen<'T>
Returns: Gen<'T * 'T * 'T>

GenExtensions.Tuple4(gen)

Full Usage: GenExtensions.Tuple4(gen)

Parameters:
    gen : Gen<'T>

Returns: Gen<'T * 'T * 'T * 'T>

gen : Gen<'T>
Returns: Gen<'T * 'T * 'T * 'T>

GenExtensions.Where(gen, predicate)

Full Usage: GenExtensions.Where(gen, predicate)

Parameters:
    gen : Gen<'T>
    predicate : Func<'T, bool>

Returns: Gen<'T>

gen : Gen<'T>
predicate : Func<'T, bool>
Returns: Gen<'T>

GenExtensions.Zip(genA, genB, genC, genD)

Full Usage: GenExtensions.Zip(genA, genB, genC, genD)

Parameters:
    genA : Gen<'T>
    genB : Gen<'U>
    genC : Gen<'V>
    genD : Gen<'W>

Returns: Gen<'T * 'U * 'V * 'W>

genA : Gen<'T>
genB : Gen<'U>
genC : Gen<'V>
genD : Gen<'W>
Returns: Gen<'T * 'U * 'V * 'W>

GenExtensions.Zip(genA, genB, genC)

Full Usage: GenExtensions.Zip(genA, genB, genC)

Parameters:
    genA : Gen<'T>
    genB : Gen<'U>
    genC : Gen<'V>

Returns: Gen<'T * 'U * 'V>

genA : Gen<'T>
genB : Gen<'U>
genC : Gen<'V>
Returns: Gen<'T * 'U * 'V>

GenExtensions.Zip(genA, genB)

Full Usage: GenExtensions.Zip(genA, genB)

Parameters:
    genA : Gen<'T>
    genB : Gen<'U>

Returns: Gen<'T * 'U>

genA : Gen<'T>
genB : Gen<'U>
Returns: Gen<'T * 'U>