NLI: Function: change
Background: NLI, Expressions, Functions
The change function changes the last element of specified sequence.
(change inp1 inp2)
input1 is a sequence whose last element is to changed.
input2 is what it is changed to.
(; Change john likes mary to john likes sue)
(change (get john like mary) sue)
(; Change john's age from 28 to 29)
(change (get john age 28) 29)