Skip to content

Instantly share code, notes, and snippets.

Created June 5, 2020 14:35
What would you like to do?
inline fun <reified T> Any.ofType(block: (T) -> Unit) {
if (this is T) {
block(this as T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment