Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Guillaume Laforge wrote:
> I noticed inject() is not supported on arrays, though both each and
> collect are supported.
> For symetry sake, shouldn't we also implement inject on arrays?
> Or should we just use arr.toList().inject(0)
?
+1
--------------------------------------------------------
phkim wrote:
> Are you ready to mplement such an inject() ?A
> If not, may I do so tonight?
Feel free to do it!
You can create a JIRA issue about it to allow us to track the changes
we make (and for the release notes of the next release of Groovy).
Thanks a lot for taking care of this.