blob: 999849fbab4b806c61b95390ef2f8a58e285fb27 (
plain) (
tree)
|
|
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
}
|