Hedgehog


RangeExtensions Type

Namespace: Hedgehog.Linq

Assembly: Hedgehog.dll

Base Type: obj

Static members

Static member Description

RangeExtensions.Bounds(range, sz)

Full Usage: RangeExtensions.Bounds(range, sz)

Parameters:
Returns: 'T * 'T

Get the extents of a range, for a given size.

range : Range<'T>
sz : Size
Returns: 'T * 'T

RangeExtensions.LowerBound(range, sz)

Full Usage: RangeExtensions.LowerBound(range, sz)

Parameters:
Returns: 'T

Get the lower bound of a range for the given size.

range : Range<'T>
sz : Size
Returns: 'T

RangeExtensions.Origin(range)

Full Usage: RangeExtensions.Origin(range)

Parameters:
Returns: 'T

Get the origin of a range. This might be the mid-point or the lower bound, depending on what the range represents. The 'bounds' of a range are scaled around this value when using the 'linear' family of combinators. When using a 'Range' to generate numbers, the shrinking function will shrink towards the origin.

range : Range<'T>
Returns: 'T

RangeExtensions.Select(range, mapper)

Full Usage: RangeExtensions.Select(range, mapper)

Parameters:
    range : Range<'T>
    mapper : Func<'T, 'TResult>

Returns: Range<'TResult>

range : Range<'T>
mapper : Func<'T, 'TResult>
Returns: Range<'TResult>

RangeExtensions.UpperBound(range, sz)

Full Usage: RangeExtensions.UpperBound(range, sz)

Parameters:
Returns: 'T

Get the upper bound of a range for the given size.

range : Range<'T>
sz : Size
Returns: 'T