Re: [racket-users] Removing duplicates from a list while maintaining order
In BSL: ;; - ;; [Listof X] -> [Listof X] ;; remove duplicates ... ;; - ;; ... keeping the copy on the left (require racket/base) ;; to import
[racket-users] Removing duplicates from a list while maintaining order
Hi all, Trying to learn a bit about recursion in racket. The question is to remove duplicates from a list while maintaining the order of the list. one function to remove duplicates from the left, i.e. 1 2 1 3 2 4 5 -> 1 2 3 4 5 and one from the right. i.e. 1 2 1 3 2 4 5 -> 1 3 2 4 5 I've go