It would be nice if slice had a negative offset that started from the end of the list instead of the beginning.
Example
Code: Select all
(setq a '(1 2 3 4 5 6 7))
(slice a -3 2) => (5 6)
Code: Select all
(slice a (- (length a) 3) 2)
Code: Select all
(setq a '(1 2 3 4 5 6 7))
(slice a -3 2) => (5 6)
Code: Select all
(slice a (- (length a) 3) 2)