scala.collection.jcl
trait MutableSeq

[source: `scala/collection/jcl/MutableSeq.scala`]

`` `trait` MutableSeq[A]
  `extends` Seq[A]`with` MutableIterable[A]

  A mutable sequence that supports the remove operation and is ordered.

Author
  Sean McDirmid

Direct Known Subclasses:
  Buffer, MutableSeq.Projection

Method Summary
`override def` | apply (idx : Int) : A
`override def` | elements : SeqIterator[Int, A] The default implementation of a map over mutable iterable collections.
`def` | indexOf (a : A) : Option[Int] Find the index of "a" in this sequence.
`override def` | isEmpty : Boolean Returns true if length == 0
`override def` | length : Int Returns the length of the sequence.
`override def` | projection : Projection[A] returns a projection that can be used to call non-strict `filter`, `map`, and `flatMap` methods that build projections of the collection.

Methods inherited from MutableIterable
has, remove, removeAll, --, -, retain, retainAll, size0, clear

Methods inherited from Seq
lengthCompare, size, concat, last, lastOption, headOption, ++, isDefinedAt, lastIndexOf, map, flatMap, filter, take, drop, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, equalsWith, startsWith, endsWith, indexOf, containsSlice

Methods inherited from Collection
toString, stringPrefix

Methods inherited from Iterable
foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize

Methods inherited from PartialFunction
orElse, andThen

Methods inherited from Function1
compose

Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Class Summary
`protected class` | DefaultSeqIterator `extends` SeqIterator[Int, A]
`protected trait` | Filter `extends` Projection[A]
`protected class` | Map [B](f : (A) => B)`extends` Map[B]`with` Projection[B]

Method Details

`override` `def` elements : SeqIterator[Int, A]

  The default implementation of a map over mutable iterable collections.

Overrides
  MutableIterable.elements

`override` `def` isEmpty : Boolean

  Returns true if length == 0

Overrides
  Seq.isEmpty

`override` `def` apply(idx : Int) : A

`override` `def` projection : Projection[A]

  returns a projection that can be used to call non-strict `filter`, `map`, and `flatMap` methods that build projections of the collection.

Overrides
  Seq.projection, MutableIterable.projection

`` `def` indexOf(a : A) : Option[Int]

  Find the index of "a" in this sequence.

Returns
  s None if the "a" is not in this sequence.

`override` `def` length : Int

  Returns the length of the sequence.

Returns
  the sequence length.

Overrides
  Seq.length