Parameter

value class Parameter<out T>(val arguments: Sequence<T>)(source)

A sequence of arguments that can be declared within a ParameterizeScope to make one of the values available.

Parameter builders are available as extensions on ParameterizeScope, making them straightforward to declare given some specified/listed/computed arguments:

val letter by parameter('a'..'z')
val primeUnder20 by parameterOf(2, 3, 5, 7, 11, 13, 17, 19)
val computedValue by parameter { lazilyComputedValues() }

Constructors

Link copied to clipboard
constructor(arguments: Sequence<T>)

Properties

Link copied to clipboard

The values that this parameter can be declared with.