append

fun <A, B> MutableMap<A, B>.append(key: A, value: B): MutableMap<A, B>

Adds value at key and returns the updated map.

Author

Arnau Mora

Since

20220314

Parameters

key

The key to add the value to.

value

The value to set.


fun <A> MutableList<A>.append(value: A?): MutableList<A>

Adds value to the end of the list if not null, and returns this.

Author

Arnau Mora

Since

20220401