Arrays methods

Brian Goetz brian.goetz at
Mon Mar 11 12:34:08 PDT 2013

>   - add Arrays.fill() methods

We have an unfortunate collection.  We already have:

      void fill(Object[] a, Object val) {

If we added

      <T> void fill(T[], IntFunction<T> gen)

then existing calls to

   fill(array, null)

would become ambiguous.  Doh.  (But the other 17 forms are not 

Any suggestions for alternate names?

More information about the lambda-libs-spec-experts mailing list