Re: reverse a collection

From: chanmmn (chanmmn_at_hotmail.com)
Date: 11/26/04


Date: Sat, 27 Nov 2004 00:05:01 +0800

You can but you need to watch out array is the collection of the same data
type.

chanmm

"nafri" <spamMe@spam.net> wrote in message
news:F3D5DA8B-4CAB-425C-A9AD-E747E35531FB@microsoft.com...
>i have a colleciton that i need to reverse. Array has a reverse method. Is
> their any direct way to transfer the items in the collection to an array
> or
> arraylist, reverse the array and transfer back them to the collection.
> Or looping through each element is the only option.
>
> TIA
> nafri



Relevant Pages

  • Re: Reversing Array Elements?
    ... Depends what you mean by "actually reverse the array". ... rather than a specification of the language. ... could make such a reordered copy in physical memory as an optimization. ...
    (comp.lang.fortran)
  • Re: Working with floating point numbers.
    ... mechanism but now need to reverse the situation and convert a double to the ... I have reversed the code but come stuck when I try to assign the array to ... I've tried to Asc) the string but it didn't work and when I ... Dim S As MyStrings ...
    (microsoft.public.access.modulesdaovba)
  • Re: reverse a collection
    ... indirectly you can leverage this method. ... similar methods, then you are correct, looping may be your only option. ... Array has a reverse method. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Cohens paper on byte order
    ... > you changed from a bit sequence to what appears to be ... an array of unsigned char to represent a bit array, ... in the reverse order instead? ... But the user input IS at the beginning a bit array ...
    (sci.crypt)
  • Re: How to open a file from the end and read the last 100 lines
    ... > I agree CPAN is great. ... #read the file - in reverse - into an array ... messages file. ...
    (comp.lang.perl.misc)