Skip to content

Instantly share code, notes, and snippets.

@joshskeen
Created April 26, 2018 20:51
Show Gist options
  • Save joshskeen/1c34ba492b25a4b6542647dddd974459 to your computer and use it in GitHub Desktop.
Save joshskeen/1c34ba492b25a4b6542647dddd974459 to your computer and use it in GitHub Desktop.
val type = hitTarget.run {
when {
isImage && isLink -> “image+link”
isImage -> “image”
else -> “link”
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment