summaryrefslogblamecommitdiff
path: root/src/library/scala/collection/Parallelizable.scala
blob: 215a8a66fff6048f7f2194b4d46125fa755985e8 (plain) (tree)
1
2
3
4
5



                        
                               
































                                                                                     
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.
 */
trait Parallelizable[+ParRepr <: Parallel] {

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

}