Question - Explain functions in kotlin?
Answer -
Functions used in kotlin are simple to store in data structures and variables and can possess arguments that are passed from the high ordered data functions.
An example of the sample function declaration in kotlin:
function double(y:int):
Int
{
return 3 * y
}
val reslt = double(3)