Skip to content

Instantly share code, notes, and snippets.

@tasaquino
Last active November 30, 2018 14:43
Show Gist options
  • Save tasaquino/8d9f8413eb0d7eee995573724f92eead to your computer and use it in GitHub Desktop.
Save tasaquino/8d9f8413eb0d7eee995573724f92eead to your computer and use it in GitHub Desktop.
Scoping Functions - let example
val person: Person = attributes.let {
mapToPerson(it.first, it.second)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment