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

[REBOL] Re: REBOL/Core 2.5.3 Released

From: al:bri:xtra at: 10-Aug-2002 16:01

I think it should be: either Temp: find Series Value [remove Temp] [append Series Value] Series As I believe that 'Alter should return the original Series at it's original position, not the 'head position given by 'append. So the complete function reads: ; Replacement 'Alter Alter: func [ {If a value is not found in a series, append it; otherwise, remove it.} Series [series! port!] Value /local Temp ][ either Temp: find Series Value [remove Temp] [append Series Value] Series ] Andrew Martin ICQ: 26227169 http://valley.150m.com/