summaryrefslogblamecommitdiff
path: root/src/library/scalax/collection/immutable/Vector.scala
blob: 93e9601bd250be650aae39d3d0fdcf9ffc8e7470 (plain) (tree)
1
2
3
4

                                   

                                             











                                                                                                            
                                    
                                                                     
                                             
 
                                                                                 



                                                     
package scalax.collection.immutable

import generic._
import annotation.unchecked.uncheckedVariance

/** Collection classes mixing in this class provide a method
 *  <code>elements</code> which returns an iterator over all the
 *  elements contained in the collection.
 *
 *  @note If a collection has a known <code>size</code>, it should also sub-type <code>SizedIterable</code>.
 *    // !!! todo: insert good immutable vector implementation here.
 *  @author  Matthias Zenger
 *  @autor   Martin Odersky
 *  @owner   Martin Odersky
 *  @version 2.8
 */
trait Vector[+A] extends Sequence[A]
                    with VectorTemplate[Vector, A @uncheckedVariance]
                    with collection.Vector[A]

object Vector extends SequenceFactory[Vector] with EmptyIterableFactory[Vector] {
  val empty: Vector[Nothing] = immutable.Vector.empty
}