So I have a list of integers and I'm trying to find the index where
list(i) > list(i+1)
I have the base cases where if the list is empty or length 1, it returns the list length, but I'm having trouble with actually traversing the list and keeping track of the index.
The code I have right now:
(defunc out-of-order (l)
(cond ((or (equal (length l) 0) (equal (length l) 1)) (length l))
; this is where the index search goes
)