REBOL Technologies

Results of REVERSE Function Survey

Carl Sassenrath, CTO
REBOL Technologies
22-Dec-2004

Article #0070
Main page || Index || Prior Article [0069] || Next Article [0071] || Post Comments || Send feedback

Thanks for all your feedback on the REVERSE function (about making it simpler). The change will be made in the next build. From what we know the change is not likely to affect any code because everyone writes the idiom HEAD REVERSE.

Of course, the new function won't be exactly the same as that, as it will keep the current index position. Here are examples:

>> probe reverse [1 2 3]
== [3 2 1]

>> probe reverse next [1 2 3]
== [3 2]

>> probe reverse/part [1 2 3] 2
== [2 1 3]

Reversing of non-series values such as pairs will not be affected by this change.

Post Comments

Updated 17-Dec-2017   -   Copyright Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code