Hi,
I have a question about reversing a subrange in a array.
I can do it but I am not satisfied about the performance using another array, copy the items an copy then back with step - 1 to the array.
let be the array of integers
(1)5
(2)10
(3)4
(4)3
(5)8
(6)15
(7)7
(8)9
(9)3
(10)6
(11)8
given place1 = 3, place2 = 7
I want to reverse the range place1,place2 like
(1)5
(2)10
(3)7
(4)15
(5)8
(6)15
(7)3
(8)4
(9)3
(10)6
(11)8
Is there a existing method in vb.net to do that?
If not I want a very fast sub or method to do that
Thanks for any response
Sorry, I see now that the method exists in the reverse method.
Thus no question !
I have a question about reversing a subrange in a array.
I can do it but I am not satisfied about the performance using another array, copy the items an copy then back with step - 1 to the array.
let be the array of integers
(1)5
(2)10
(3)4
(4)3
(5)8
(6)15
(7)7
(8)9
(9)3
(10)6
(11)8
given place1 = 3, place2 = 7
I want to reverse the range place1,place2 like
(1)5
(2)10
(3)7
(4)15
(5)8
(6)15
(7)3
(8)4
(9)3
(10)6
(11)8
Is there a existing method in vb.net to do that?
If not I want a very fast sub or method to do that
Thanks for any response
Sorry, I see now that the method exists in the reverse method.
Thus no question !
Last edited: