Scala return type when extending collection

那年仲夏 提交于 2019-12-04 08:48:57

I can't really tell without a sample of your code but you can take a look at Jesse Eichar's post which provides a walk through the implementation of a custom collection and addresses your question nicely.

http://daily-scala.blogspot.com/2010/04/creating-custom-traversable.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!