golo-lang/golo-lang — pull request #26 by danielpetisme (2013-05-13 15:24:07+00:00)
Title: Standard Augmentation Iterable

Currently the augmentation are mainly on the ```java.util.Collection ``` where they could be directly done against the ```java.lang.Iterable``` root class.So I try to factorize them.
*NB: ```j.u.Map``` is not an instance of ```j.l.Iterable```...*

I also took the opportunity to factorize the ```newWithSameType```. Indeed, the PR https://github.com/golo-lang/golo-lang/pull/24 defined some default implementations for ```j.u.Map``` in the ```j.u.Collection``` and then redefine the ```newWithSameType``` method in the Map augmentation. So, the default Map implementation is never used...

To ease the management I externalized the method outside the augmentations.
*I could not defined it as a ```local``` functions due to visibility issues*