Hello I tried another version but it doesnt work. Can anyone help me? Using the 
"and" function didnt help me.


#lang racket


(define (checker wort liste1 liste2)
  (cond ((and (equal? (first liste1) wort)
              (equal? (first liste2) wort))
         '(true))

        ((or (null? liste1)
             (null? liste2))
             '(false))

        ((equal? (first liste1) wort) (checker wort (rest liste2) (rest 
liste2)))

        ((equal? (first liste2) wort) (checker wort (rest liste1) (rest 
liste1)))))
        
          

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to