Created
September 11, 2017 16:34
-
-
Save adam-arold/58c106ff475e9c261ac39cfd76b602ae to your computer and use it in GitHub Desktop.
getFirstAddressInferred
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Here the type of `firstAddress` is inferred from the context. | |
*/ | |
fun getFirstAddressInferred(): Address { | |
val firstAddress = addresses.first() | |
return firstAddress | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment