This assignment is to check if both lists are equal by creating my own function to do so, with this i am getting it to define the function. The issue i am having is when i try to call the function using (listEquals list1 list2) it is returning an error of
application: not a procedure;
expected a procedure that can be applied to arguments
given: #f
I am giving a input of two lists list1 = (1 2 3 4), list2 = (2 3 4 5).
Here is my current implimentation
(define listEquals (lambda (list1 list2)
(if (eq? list1 null)
(if (eq? list2 null)
(true)
(false))
(if (eq? list2 null)
(false)
(if (eq? (first list1) (first list2))
(listEquals (rest list1) (rest list2))
(false))))))