I'm a little new to Groovy, so I'm sure this is one of those extremely obvious things ... but it's hard to find through Google.
In other languages, stars tend to represent pointers. However, in this piece of Groovy code:
byte[] combineArrays(foo, bar, int start) { [*foo[0..<start], *bar, *foo[start..<foo.size()]] }
I can only imagine that this is not so. I mean pointers? Groovy?
I assume that this code intends to pass members from foo and bar as opposed to a multidimensional array. So what exactly do asterisks mean?
Many thanks for your help.
source share