Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8184707

add List.forEach(ObjIntConsumer) that also takes index

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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)

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

              Created:
              Updated: