Change - Function SummarySummary:Changes a value in a series and returns the series after the change. Usage:change series value Arguments:series - Series at point to change (must be: series port) value - The new value (must be: any-type) Refinements:/part - Limits the amount to change to a given length or position. range - The range argument. (must be: number series port pair) /only - Changes a series as a series. /dup - Duplicates the change a specified number of times. count - The count argument. (must be: number pair) Description:If the second argument is a simple value, it will replace the value at the current position in the first series. If the second argument is a series compatible with the first (block or string-based datatype), all of its values will replace those of the first argument or series. The /PART refinement changes a specified number of elements within the target series. For the convenience of cascading multiple changes the CHANGE function returns the series position just past the change.
Related:append - Appends a value to the tail of a series and returns the series head. User Comments:-From: Al.Bri_xtra.co.nz 30-Dec-2000/13:02:33-8:00: Change is also handy inside 'parse rule actions. For example:
changes the input string and jumps over the replaced text.
| ||||||||||||
|