Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created December 14, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajjadyousefnia/ea1a922ea18314c8045b6e87653c44d5 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/ea1a922ea18314c8045b6e87653c44d5 to your computer and use it in GitHub Desktop.
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