Created
July 18, 2019 18:13
-
-
Save parzibyte/ec5f07f239a6e337cfa1f34419fd8692 to your computer and use it in GitHub Desktop.
Named parameters Kotlin function https://parzibyte.me/blog
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 agregarPostAlBlog(id: Int, autor: String, titulo: String, contenido: String, fechaCreacion: String, permiteComentarios: Boolean, conteoComentarios: Int){ | |
// Aquí crear el post ;) | |
} | |
agregarPostAlBlog( | |
id = 1, | |
autor = "parzibyte", | |
titulo = "Funciones en Kotlin", | |
contenido = "Bla bla", | |
fechaCreacion = "2019-07-18", | |
permiteComentarios = false, | |
conteoComentarios = 0 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment