Ruby
China
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
@shunzi_gong
Member
NO. 18272 /
2015-04-17
0
Topics
/
1
Replies
0
Followers
0
Following
8
Favorites
GitHub Public Repos
Overview
Topics
Replies
Favorites
Following
Followers
Ruby 如何判断一个数组中是否有重复元素?
at
June 02, 2015
array.size > array.to_set.size 我不太知道 to_set 的内部实现,是否比 uniq 高,但是 to_set 应该没有 uniq 里面的 sort 方法