robstoll
10/11/2018, 4:32 PMArray.copy
involved in the following statement:
fun foo(vararg path: String) = Paths.get(*path)
Is there a way to pass an array to Paths.get
as it is possible in Java in order to circumvent the performance penalty?Ruckus
10/11/2018, 4:41 PMSam
10/11/2018, 4:54 PMrobstoll
10/11/2018, 4:58 PMRuckus
10/11/2018, 5:04 PMrobstoll
10/11/2018, 5:14 PMpath
a second time in the function and have already a copy of path (or is it possible to pass somehow not a copy to the function - maybe from Java 🤔)orangy
foo
inline would help.robstoll
10/11/2018, 5:19 PMrobstoll
10/11/2018, 5:20 PMorangy
robstoll
10/11/2018, 5:25 PMorangy