#56
Find Distinct Items
 

Difficulty:Medium
Topics: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]))
test not run
(= (__ (range 50)) (range 50))
Special Restrictions
  • distinct


  • Code which fills in the blank: