On Thu, Oct 27, 2016 at 1:09 PM, Ken MacKenzie <deviloc...@gmail.com> wrote:

> Thank you that makes sense.  Vectors are fixed length so in theory could I
> also say a Vector is possibly more performant than an equivalent list?
>
> Ken
>

For accessing an arbitrary member, yes. A Racket vector is like, say, a C
array: it's a contiguous chunk of memory, and you can get at any member of
it in constant time.

For other purposes? Depends on the purpose. A struct is superior to a list
for struct-like operations. A list is superior to a struct for list-like
operations.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to