Range

case class Range[A](origin: A, bounds: Size => (A, A))

A range describes the bounds of a number to generate, which may or may not be dependent on a 'Size'.

A range describes the bounds of a number to generate, which may or may not be dependent on a 'Size'.

Value Params
bounds

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

origin

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.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def lowerBound(size: Size)(O: Ordering[A]): A

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

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

def map[B](f: A => B): Range[B]
def upperBound(size: Size)(O: Ordering[A]): A

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

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

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product