Java 8 introduced the :: method reference syntax and it's possible to use it with "new" when creating new instances. For example you can create new instances by passing something like Foo::new to a Java 8 stream.
This example concatonates two string arrays in Java using this syntax:
String both = Stream.concat(Arrays.stream(a), Arrays.stream(b)) .toArray(String::new);
It’s generating a new Array. I know there a ways to concatonate arrays in Kotlin, that isn’t my question, my question is with regard to the String::new syntax. How is this achievable in Kotlin? If I wanted a Java 8 Stream to generate new instances how do I pass something it will recognize, as in the example I pasted above?