doc / ch.tutteli.atrium.api.infix.en_GB.creating.list / IndexWithCreator

IndexWithCreator

data class IndexWithCreator<E>

Parameter object which combines an index of type Int with an assertionCreator which defines assertions for a resulting feature of type E.

Use the function index(Int) { ... } to create this representation.

Since
0.10.0

Constructors

<init>

IndexWithCreator(index: Int, assertionCreator: Expect<E>.() -> Unit)

Parameter object which combines an index of type Int with an assertionCreator which defines assertions for a resulting feature of type E.

Properties

assertionCreator

val assertionCreator: Expect<E>.() -> Unit

index

val index: Int