So I have to remove the last element of a list in scheme.
For example, let\'s say I have a list (1 2 3 4). I need to return:
(1 2 3 4)
(1 2 3)
SRFI 1 (activate in Racket using (require srfi/1)) has a drop-right function:
(require srfi/1)
drop-right
(drop-right '(1 2 3 4) 1) ; => (1 2 3)