right, it will create another list smth close to t...
# announcements
g
right, it will create another list smth close to this then
Copy code
inline fun <T> MutableCollection<T>.plusIf(element: T, predicate: (T) -> Boolean) {
    if (predicate.invoke(element)) {
        add(element)
    }
}