Created
December 14, 2018 18:02
-
-
Save sajjadyousefnia/ea1a922ea18314c8045b6e87653c44d5 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
inline fun inlinedFilter(list : List<Int>, predicate : (Int) -> Boolean) : List<Int>{ | |
val function = predicate | |
return list.filter(predicate) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment