[REBOL] Re: head reverse annoys me
From: SunandaDH:aol at: 16-Dec-2004 15:29
> I'm not sure if anyone has been annoyed by REVERSE returning
> the tail position. I know I have. Everywhere I see REVERSE used
> like this: ... head reverse foo.
But used? Yes -- quite commonly.
I've scanned a pile of code and found it on several occasions.
Typically something like:
if user-display-option = "earliest first" [
data: head reverse data
foreach item data [ .... ]
Sadly, all that code would break.
How about a related word?
invert: func [item] [head reverse item]