dbc0c592ab1431cb3c99f14861668d9c41294485ba9143a7234c742748a922ebf738afdf7874ce3f
6
**                          |/                                          **
6
**                          |/                                          **
7
\*                                                                      */
7
\*                                                                      */
8
 
8
 
9
 
 
 
10
package scala.collection.parallel
9
package scala.collection.parallel
11
 
10
 
12
 
 
 
13
 
 
 
14
 
 
 
15
 
 
 
16
 
 
 
17
 
 
 
18
 
 
 
19
 
 
 
20
 
 
 
21
 
 
 
22
package object immutable {
11
package object immutable {
23
 
12
 
24
  /* package level methods */
13
  /* package level methods */
...
 
...
 
36
   */
25
   */
37
  private[parallel] class Repetition[T](elem: T, val length: Int) extends ParSeq[T] {
26
  private[parallel] class Repetition[T](elem: T, val length: Int) extends ParSeq[T] {
38
  self =>
27
  self =>
39
    def apply(idx: Int) = if (0 <= idx && idx < length) elem else throw new IndexOutOfBoundsException
28
    def apply(idx: Int) = if (0 <= idx && idx < length) elem else throw new IndexOutOfBoundsException("" + idx)
40
    override def seq = throw new UnsupportedOperationException
29
    override def seq = throw new UnsupportedOperationException
41
    def update(idx: Int, elem: T) = throw new UnsupportedOperationException
30
    def update(idx: Int, elem: T) = throw new UnsupportedOperationException
42
 
31
 
...
 
...
 
58
    def splitter = new ParIterator with SCPI
47
    def splitter = new ParIterator with SCPI
59
 
48
 
60
  }
49
  }
61
  
 
 
62
}
50
}
63
 
 
 
64
 
 
 
65
 
 
 
66
 
 
 
67
 
 
 
68
 
 
 
69
 
 
 
70
 
 
 
71
 
 
 
72