Can you give a little more context? I tried running your program in DrRacket and it seems to work, or at least I don't get the error you're seeing.
Dan On Tue, Apr 26, 2016 at 7:39 PM, Andreas Petrou <[email protected]> wrote: > 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. > -- 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.

