Ellen Spertus
private fun createSearchIntent(mr: MatcherResult) = mr.slots[THING_KEY]?.let { thing -> val suffix = mr.slots[LOCATION_KEY]?.let { "in $it" } ?: "" Intent( Intent.ACTION_VIEW, Uri.parse("navigation:q=$thing$suffix") ) }
Can Orhan
$thing$suffix
"in it"
Uri.parse()
A modern programming language that makes developers happier.