last-pair   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/init.xtm

Implementation

(define (last-pair x)
  (if (pair? (cdr x))
      (last-pair (cdr x))
      x))


Back to Index