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

add List.forEach(ObjIntConsumer) that also takes index

    Details

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

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smarks Stuart Marks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: