reverse a collection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: nafri (spamMe_at_spam.net)
Date: 11/26/04


Date: Fri, 26 Nov 2004 04:25:03 -0800

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: Reversed Array
    ... I don't know how it works, or if it will work for your needs, but the following equation gives the coeficients in the reverse order: ... gives the array of estimates in the order that you desire. ... again to run a regression with one more incremental set of data, ... use the coefficients to created trended data. ...
    (microsoft.public.excel.misc)
  • 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: Where is string.Reverse() and string.SwapChars()?
    ... Why not add a Reverse method? ... converting it back to a string requires additional memory allocations, ... Reverse is the method of Array class, thus u can convert string to array ...
    (microsoft.public.dotnet.languages.csharp)