#56
Find Distinct Items
 

Difficulty:N/A
Topics:medium seqs core-functions


Write a function which removes the duplicates from a sequence. Order of the items must be maintained.
test not run
(= (__ [1 2 1 3 1 2 4]) [1 2 3 4])
test not run
(= (__ [:a :a :b :b :c :c]) [:a :b :c])
test not run
(= (__ '([2 4] [1 2] [1 3] [1 3])) '([2 4] [1 2] [1 3]))
Special Restrictions
  • distinct


  • Code which fills in the blank: