Allows the insertion of one or more new values in a multifield slot value before a specified field index. The index must greater than or equal to 1. A value of 1 inserts the new value(s) at the beginning of the slot's value. Any value greater than the length of the slot's value appends the new values to the end of the slot's value.
External Interface Syntax
(slot-insert$ <instance-expression> <mv-slot-name> <index> <expression>+)
Internal Interface Syntax
(direct-slot-insert$ <mv-slot-name> <index> <expression>+)
Example
CLIPS> (initialize-instance a) [a] CLIPS> (slot-insert$ a mfs 2 4 2 3 4) (a 4 2 3 4 b c d e) CLIPS>