Allows the replacement of a range of fields in a multifield slot value with one or more new values. The range indices must be from 1..n, where n is the number of fields in the multifield slot's original value and n > 0.
External Interface Syntax
(slot-replace$ <instance-expression> <mv-slot-name> <range-begin> <range-end> <expression>+)
Internal Interface Syntax
(slot-direct-replace$ <mv-slot-name> <range-begin> <range-end> <expression>+)
Example
CLIPS> (defclass A (is-a USER) (role concrete) (multislot mfs (default a b c d e) (create-accessor write))) CLIPS> (make-instance a of A) [a] CLIPS> (slot-replace$ a mfs 2 4 2 3 4) (a 2 3 4 e) CLIPS>