Advertisement
Guest User

Jack111

a guest
Jun 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Racket 0.28 KB | None | 0 0
  1. I am trying to write the following Racket function
  2. (define (unique-right lst)
  3.   (foldl (lambda (x y) (cons (empty lst) (filter (lambda (z) (not (= x z))) y))) ))
  4. (check-expect(unique-right '(1 4 2 1 5 4))'(2 1 5 4))
  5. But my output is (4 5 1 2), any hint? what should I do  from here?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement