Skip to content

Instantly share code, notes, and snippets.

@sliskiCode
Created January 8, 2018 18:01
Show Gist options
  • Save sliskiCode/bec6e4c40bf7ce078793a7adde39f072 to your computer and use it in GitHub Desktop.
Save sliskiCode/bec6e4c40bf7ce078793a7adde39f072 to your computer and use it in GitHub Desktop.
6 magic sugars that can make your Kotlin codebase happier #31
infix fun openSearch(block: SearchToolbar.() -> Unit): SearchToolbar {
// Testing framework code
return SearchToolbar.apply(block)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment