Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 18, 2019 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ec5f07f239a6e337cfa1f34419fd8692 to your computer and use it in GitHub Desktop.
Save parzibyte/ec5f07f239a6e337cfa1f34419fd8692 to your computer and use it in GitHub Desktop.
Named parameters Kotlin function https://parzibyte.me/blog
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