Created
October 15, 2020 03:21
-
-
Save anncode1/5819d3a307ae5a97ccdd4b3f3bcab8b8 to your computer and use it in GitHub Desktop.
This file contains 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
fun main() { | |
val type = createType() | |
val contacts = createContacts() | |
val agenda = Agenda(type, contacts) | |
} | |
fun createType(): String = "Friends" | |
fun createContacts(): List<Contacts> = | |
listOf( | |
Contact("Anahí", "555-5555"), | |
Contact("Mauricio", "444-4444"), | |
Contact("Rodrigo", "333-3333"), | |
Contact("Mirella", "222-2222") | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment