(last-pair (list 23 72 149 34)) (34)
(define (last-pair lst) (if (null? lst) '() (if (null? (cdr lst)) (car lst) (last-pair (cdr lst)))))(last-pair (list 23 72 149 34))x 34
(define (last-pair lst)
(if (null? lst)
'()
(if (null? (cdr lst))
(car lst)
(last-pair (cdr lst)))))
(last-pair (list 23 72 149 34))
34