add List.forEach(ObjIntConsumer) that also takes index

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      Iterable.forEach(Consumer) calls the consumer with each contained element. For lists, it would also be nice if there were a variation that took the element's index as well as the element itself.

      default void forEach(ObjIntConsumer<? super T> c)

            Assignee:
            Unassigned
            Reporter:
            Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: