doc / ch.tutteli.atrium.api.infix.en_GB / keyValue

keyValue

fun <K, V : Any> keyValue(key: K, valueAssertionCreatorOrNull: (Expect<V>.() -> Unit)?): KeyWithValueCreator<K, V>

Helper function to create a KeyWithValueCreator based on the given key and valueAssertionCreatorOrNull -- allows to express Pair<K, V>, vararg Pair<K, V>.