Skip to content

Instantly share code, notes, and snippets.

@anncode1
Created October 15, 2020 03:21
Show Gist options
  • Save anncode1/5819d3a307ae5a97ccdd4b3f3bcab8b8 to your computer and use it in GitHub Desktop.
Save anncode1/5819d3a307ae5a97ccdd4b3f3bcab8b8 to your computer and use it in GitHub Desktop.
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