Variable Arguments(Varargs in koltin)
In java looks like
public void println(String.. args) { }
To pass variable number of arguments to a function. We can declare function with varargs parameter.
// allow function to accept number of arguments
fun printAnimal(vararg animals:String)...
sanjayprajapat.hashnode.dev1 min read