addIfAbsent

fun <E> MutableList<E>.addIfAbsent(element: E)

Add the given element to this list if it is not in it already.

Used when the performance hit of a Set is not worth it, such as if this operation is rare.

Since

1.2.0