Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: head reverse annoys me

From: SunandaDH:aol at: 16-Dec-2004 15:29

Carl:
> 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.
Annoying? Yes.. 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] Sunanda