Closed GoogleCodeExporter closed 8 years ago
Thanks for the contribution. Your suggestion is definitely reasonable. The only
question is how often people would want that functionality.
FYI, your methods could return a List instead of an Iterable, while still
taking an
Iterable as an input parameter. Simply create a subclass of AbstractList that
implements get().
Original comment by jared.l....@gmail.com
on 24 Oct 2009 at 5:06
List is a better return type. Especially because I'd have it expected it not to
be in
reverse order, but to be able to pass it to Iterables.reverse() if I did want
it in
reverse order.
Original comment by kevin...@gmail.com
on 24 Oct 2009 at 5:30
Good points, I forgot about AbstractList. Here's a much simpler implementation
where the iterable version
returns a list. And yeah, the use-case for this is pretty specific. Thought
I'd throw it out there anyhow.
Original comment by tony.cha...@gmail.com
on 24 Oct 2009 at 7:45
Attachments:
This issue has been moved to the Guava project (keeping the same id number).
Simply replace 'google-collections' with 'guava-libraries' in your address
bar and it should take you there.
Original comment by kevinb@google.com
on 5 Jan 2010 at 11:09
Original issue reported on code.google.com by
tony.cha...@gmail.com
on 24 Oct 2009 at 4:22Attachments: