Lists in Go (LinkedList/ArrayList)

1,295 views
Skip to first unread message

Adrian

unread,
Aug 4, 2010, 12:31:30 AM8/4/10
to golang-nuts
Hi,

Is there a collection akin to Java's LinkedList or ArrayList in Go?

Thanks.

Cory Mainwaring

unread,
Aug 4, 2010, 12:35:44 AM8/4/10
to Adrian, golang-nuts
http://golang.org/pkg/container/

For single-linked lists, you have to roll your own (pretty easy to do, especially if you've coded C for any length of time)

Adrian

unread,
Aug 4, 2010, 1:20:46 AM8/4/10
to golang-nuts
Thanks Cory.
Most helpful.

Regards.

On Aug 4, 6:35 am, Cory Mainwaring <olre...@gmail.com> wrote:
> http://golang.org/pkg/container/
>
> <http://golang.org/pkg/container/>For single-linked lists, you have to roll
> your own (pretty easy to do, especially if you've coded C for any length of
> time)
>
Reply all
Reply to author
Forward
0 new messages