summaryrefslogblamecommitdiff
path: root/src/library/scala/collection/Parallelizable.scala
blob: 999849fbab4b806c61b95390ef2f8a58e285fb27 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                        
                               





                                                                                     

                                                                                    


























                                                        
package scala.collection



import parallel.ParIterableLike



/** This trait describes collections which can be turned into parallel collections
 *  by invoking the method `par`. Parallelizable collections may be parametrized with
 *  a target type different than their own.
 *
 *  @tparam ParRepr      the actual type of the collection, which has to be parallel
 */
trait Parallelizable[+ParRepr <: Parallel] {

  /** Returns a parallel implementation of a collection.
   */
  def par: ParRepr

}