On Fri, 21 Jul 2023 11:16:11 GMT, Hollis Waite <[email protected]> wrote:
> It'd be convenient if SequencedCollection overrode Iterable.iterator() to
> return a ListIterator. That would make it simpler to derive a List from
> LinkedHashMap.values().
What stops you from deriving a list from LinkedHashMap.values() as follows?
new ArrayList<>(map.values());
-------------
PR Comment: https://git.openjdk.org/jdk/pull/7387#issuecomment-1645654540
