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

[REBOL] Re: I just ain't gettin' it! :)

From: ammon:addept:ws at: 18-Dec-2002 17:05

Hi, Try something like:
>> a: [1 2 3 4]
== [1 2 3 4]
>> change/part find a 3 5 1
== [4]
>> a
== [1 2 5 4]
>> ? change
USAGE: CHANGE series value /part range /only /dup count DESCRIPTION: Changes a value in a series and returns the series after the change. CHANGE is an action value. ARGUMENTS: series -- Series at point to change (Type: series port) value -- The new value (Type: any) REFINEMENTS: /part -- Limits the amount to change to a given length or position. range -- (Type: number series port) /only -- Changes a series as a series. /dup -- Duplicates the change a specified number of times. count -- (Type: number) HTH Ammon Johnson --- CIO Addept ------------------ (www.addept.ws) 435-616-2322 -------- (ammon at addept.ws)