My code is here:)
;3.) A function called allDiff? that takes as parameters two lists. The 
function returns #t if none of  the elements in the first list can be found in 
the second
(
 define (allDiff? list1 list2)  
    ( if (null? list1) '()
           ( if (null? (cdr list1))
             (if (memq (car list1) list2) #f #t)
               (if (memq (car list1) list2) #f
                   (allDiff? (cdr list1) list2))
               )
           )
  )

See this error. Please Help
list1: undefined;
 cannot reference an identifier before its definition

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to