Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

举例说明那些你觉得好用的集合方法 #6

Open
hongjiang opened this issue May 14, 2013 · 2 comments
Open

举例说明那些你觉得好用的集合方法 #6

hongjiang opened this issue May 14, 2013 · 2 comments

Comments

@hongjiang
Copy link
Member

比如 List(1,2,2,3).distinct 可以把集合里的重复元素去掉。这样比用Set操作再做类型转换要简单些

@argan
Copy link
Member

argan commented May 15, 2013

我就觉得最常用的filter,map,foldLeft很好用,很贴心,java真的是伤不起啊

@fujohnwang
Copy link
Member

flapMap with for comprehension :)

foreach

slice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants