I have a function like below which is auto generated by a script.
def printFunc(args : Any*) : Unit = {
funcCallHandler.call(args)
}
The call function in the funcCallHandler looks like this. This function takes variable arguments from other generated functions too.
def call(args : Any*) : Unit = {
for (arg <- args) {
/*Check type using a match function
and add do the rest of the code*/
}
}
When I am passing the variable arguments I got from the first function to the second mentioned one I get it as a WrappedArray. Is there a way to type match this WrappedArray or is there a better approach at doing this?
The type is not specified in the case of first function.