Using only AutoLisp, and given a list that contains repeated elements, return a list where the consecutive duplicates are replaced by a single copy of the item. The order of the elements, in the list, should not be changed. -i.e. transform a list into a compressed version.
Example:
(compress '(a a a a b c c a a d e e e e))
> (A B C A D E)
(compress '(A B C A D E))
> (A B C A D E)
(compress '(A A))
> (A)
(compress '())
nil