ArbitraryExtensions
Namespace: FsCheck
Attributes:
[<Extension>]
Extensons to transform Arbitrary instances into other Arbitrary instances.
Static members
Static member  Description 
ArbitraryExtensions.Convert(...)
Signature: (arb:Arbitrary<'?8127> * convertTo:Func<'?8127,'?8128> * convertFrom:Func<'?8128,'?8127>) > Arbitrary<'?8128>
Type parameters: '?8127, '?8128
Attributes:
[<Extension>]

Construct an Arbitrary instance for a type that can be mapped to and from another type (e.g. a wrapper),
based on a Arbitrary instance for the source type and two mapping functions.

ArbitraryExtensions.Filter(arb, filter)
Signature: (arb:Arbitrary<'?8130> * filter:Func<'?8130,bool>) > Arbitrary<'?8130>
Type parameters: '?8130
Attributes:
[<Extension>]

Return an Arbitrary instance that is a filtered version of an existing arbitrary instance.
The generator uses Gen.suchThat, and the shrinks are filtered using Seq.filter with the given predicate.

ArbitraryExtensions.MapFilter(...)
Signature: (arb:Arbitrary<'?8132> * map:Func<'?8132,'?8132> * filter:Func<'?8132,bool>) > Arbitrary<'?8132>
Type parameters: '?8132
Attributes:
[<Extension>]

Return an Arbitrary instance that is a mapped and filtered version of an existing arbitrary instance.
The generator uses Gen.map with the given mapper and then Gen.suchThat with the given predicate,
and the shrinks are filtered using Seq.filter with the given predicate.
This is sometimes useful if using just a filter would reduce the chance of getting a good value
from the generator  and you can map the value instead. E.g. PositiveInt.
