Created
March 18, 2019 13:43
-
-
Save sajjadyousefnia/da2da59dfd078f71f331388ee426ac00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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