Select Page

# Author: Coding_Robort

## Lesson 19 – Functions with parameters with default value in kotlin

In Kotlin you can define parameters and assign them a data in the same header of the function. Then when we call the function we can or do not send a value to the parameter. The default parameters allow us to create more flexible functions that can be used in different circumstances. Problem 1 Create a [...]

## Lesson 18 – Functions with a single expression in Kotlin Language

Functions with a single expression in Kotlin Language. The functions of a single expression can be expressed in Kotlin without the block of keys and by an assignment indicate the value that it returns. Recall that one of the goals in Kotlin is to allow us to implement the algorithms in the most concise way [...]

## Lesson 17: Functions with data return in Kotlin Language

Functions with data return in Kotlin Language. We saw that a function is defined by a name and that it can receive data by means of its parameters. Parameters are the way for a function to receive data to be processed. Now we will see another characteristic of the functions that is to return a data [...]

## Lesson 16: Concept of functions in Kotlin language

Concept of functions in Kotlin language. So far we have worked solving the whole problem in the main function proposed in Kotlin. This way of organizing a program can only be carried out if it is very small (tens of lines). Topic: Concept of functions in Kotlin language. Now we will try to divide or decompose [...]

## Lesson 15: Function parameters in Kotlin language

Function parameters in Kotlin language. We saw in the previous concept that a function solves a part of our algorithm. On the one hand we have the declaration of the function by means of a name and the algorithm of the function next. Then to run the function we call it from the main function. [...]

#### NOTICE

I provide daily programming tips, news and tutorials on my Instagram page
Link here to view and follow
Would you like to learn python language?