Ruby Cheat Sheet

ruby

[1,1,1].uniq => [1]
python

list(set([1,1,1]))
javascript

let arr = [1,2,3,1,2,3]
[...new Set(arr)]
// [1, 2, 3]
go

rust