val authors = listOf("Dmitry", "Svetlana") | |
val readers = mutableListOf<String>(/* ... */) | |
fun <T> List<T>.filter(predicate: (T) -> Boolean): List<T> | |
>>> readers.filter { it !in authors } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment