with

infix fun <K, V> K.with(value: V): KeyValuePair<K, V>

Infix helper to create a KeyValuePair from the receiver and the given value.

Return

a KeyValuePair of the receiver and value

Parameters

value

associated value