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

2019年五月份总结与六月份计划 - AlstonWilliams's Blog #28

Open
AlstonWilliams opened this issue Jun 1, 2019 · 1 comment

Comments

@zhaihao
Copy link

zhaihao commented Mar 30, 2021

scala 导入的默认是不可变集合,内存上开销是要大一些,某些场景可以使用可变集合。至于后面一个问题使用 scala.collection.Iterator.single[A](elem:A) 获得与 singletonList 类似的效果

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

No branches or pull requests

2 participants