ing[] empty = Arrays.emptyArray()
def empty = Arrays.emptyArray()
*From:* Milles, Eric (TR Tech, Content & Ops)
*Sent:* Wednesday, November 28, 2018 9:38:29 AM
*To:* dev@groovy.apache.org
*Subject:* Re: About adding `emptyArray` DGS
> String[].emptyArray() -> String[][]?
true
> Arrays.emptyArray()
or `Arrays.emptyArray(String[])`, but they look a bit verbose...
Cheers,
Daniel.Sun
-
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com
Arrays.emptyArray()
def empty = Arrays.emptyArray()
From: Milles, Eric (TR Tech, Content & Ops)
Sent: Wednesday, November 28, 2018 9:38:29 AM
To: dev@groovy.apache.org
Subject: Re: About adding `emptyArray` DGSM to arrays
How would you return an empty multi-dimensio
at first glance. One-dimensional will be
the most common use case by far.
From: Daniel.Sun
Sent: Wednesday, November 28, 2018 6:28 AM
To: d...@groovy.incubator.apache.org
Subject: Re: About adding `emptyArray` DGSM to arrays
`String.emptyArray()` may be better
Ch
`String.emptyArray()` may be better
Cheers,
Daniel.Sun
-
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html