GarouDan
10/23/2018, 12:56 PMfun myFunction(arg1: Type1, arg2: Type2, ..., argn: TypeN) {
val arguments = getAllArguments()
}
Egor Trutenko
10/23/2018, 1:00 PMList<Any>
?Burkhard
10/23/2018, 1:00 PMAny
.
I would just use listOf(arg1, arg2, etc)
. IMO there is something else wrong if you have so many arguments that this is a lot to typeGarouDan
10/23/2018, 1:16 PMGarouDan
10/23/2018, 1:16 PMEgor Trutenko
10/23/2018, 1:19 PM::
. This way, you'll be able to write something like this:
::myFunction.parameters.forEach { println(it) }
I'm not sure, though, what you'll get, you may want to experiment with itGarouDan
10/23/2018, 1:23 PMEgor Trutenko
10/23/2018, 1:25 PMEgor Trutenko
10/23/2018, 1:25 PMEgor Trutenko
10/23/2018, 1:37 PM