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

[REBOL] Re: Change/part

From: ptretter:norcom2000 at: 23-Feb-2001 8:30

Maybe, I am using it wrong -
>> help 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)
>> string: "0000000000"
== "0000000000"
>> series? string
== true
>> change/part string "2" 4
== "000000"
>> print head string
2000000
>>
Doesn't give me the result I expected. I index 4 of the string to be "2". Paul Tretter