Skip to content

Instantly share code, notes, and snippets.

@rahat14
Created January 18, 2021 09:28
Show Gist options
  • Save rahat14/b13001a94934fdd98d0ebe957ed45c43 to your computer and use it in GitHub Desktop.
Save rahat14/b13001a94934fdd98d0ebe957ed45c43 to your computer and use it in GitHub Desktop.
Kotlin Chain
student?.run {
firstName == "John" &&
lastName == "Doe" &&
age == 40 &&
homeAddress == "Dhaka,Bangladesh" &&
cellPhone.orEmpty().startsWith("+880")
} ?: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment