Hello people! Just a simple question: I have a fun...
# getting-started
c
Hello people! Just a simple question: I have a function that takes a
vararg
as a parameter. How can I use those as parameter for another function inside the first that also takes a
vararg
as parameter? Here's the message I get:
Copy code
Type mismatch.
Required: FictionData
Found: Array<out FictionData>
Here is the code:
Copy code
fun insertFiction(vararg fictionData: FictionData) {
    functionThatTakesAVarargAsParameter( fictionData )
}