Re: [racket-users] Removing duplicates from a list while maintaining order

2015-06-03 Thread Matthias Felleisen
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

2015-06-02 Thread Paul Bian
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