RosettaCodeData/Task/Remove-duplicate-elements/Crystal/remove-duplicate-elements.cr

3 lines
62 B
Crystal
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
ary = [1, 1, 2, 2, "a", [1, 2, 3], [1, 2, 3], "a"]
p ary.uniq