This function replaces a range of field in a multifield value with a series of singlefield and/or multifield values and returns a new multifield value containing the replacement values within the original multifield value.
Syntax
(replace$ <multifield-expression> <begin-integer-expression> <end-integer-expression> <single-or-multi-field-expression>+)
where <begin-integer-expression> to <end-integer-expression> is the range of values to be replaced.
Example
CLIPS> (replace$ (create$ drill wrench pliers) 3 3 machete) (drill wrench machete) CLIPS> (replace$ (create$ a b c d) 2 3 x y (create$ q r s)) (a x y q r s d) CLIPS>