Is there possible to get all function arguments and pass it to another?
def function funA(arg1: String, arg2: String, arg3: Int): Any = {
....
funB(arg1, arg2, arg3)
}
Instead funB(arg1, arg2, arg3)
I want to write something like this funB(parentFun.args)
Is it at all possible? Maybe I should use some reflections?
Aucun commentaire:
Enregistrer un commentaire