在SO上,我看到了一些问题,比较了Array with Seq,List with Seq和Vector with well, everything。但是有一件事情我不太明白。在什么情况下我应该使用
Seq
而不是这些集合中的任何一个?我知道何时使用List
,何时使用Array
和何时使用Vector
。但是在什么情况下使用Seq
而不是上述列出的集合是个好主意呢?为什么要使用扩展Iterable
的trait
而不是所有上面列出的具体类?