I'm following an introduction to Computer Science using Scheme. I am into the following problem, and I come up with a solution, it seems however that I'm lost in the syntax.

Define a procedure last-pair that returns the list that contains only the last element of a
given (nonempty) list:
(last-pair (list 23 72 149 34))

Here is my solution:

```
   (define (last-pair array) 
     ((define (get-last (length array) array)) 
       (if (= (length array) 1) (car array) 
        (get-last (- 1 (length array)) (cdr array))))))

```

Here is the mistake: Error: Invalid lambda: (lambda ((length array) array))