Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created March 21, 2019 18:18
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/2cefd48dc9655bca902f0bfc2756358b to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/2cefd48dc9655bca902f0bfc2756358b to your computer and use it in GitHub Desktop.
>>> val items = listOf("one", 2, "three")
>>> println(items.filterIsInstance<String>())
[one, three]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment