EitherIndex
An Index over two kinds of things. Layout is straightforward: The first left.size entries are from the left index, while the next right.size are from the right index. Values are wrapped in Left/Right
trait Serializable
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
Returns true if this index contains the element t.
Returns true if this index contains the element t.
- Inherited from:
- Index
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
- Inherited from:
- IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
- Inherited from:
- IterableOnceOps
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
- Inherited from:
- Index
Override Iterable's linear-scan indexOf to use our apply method.
Override Iterable's linear-scan indexOf to use our apply method.
- Inherited from:
- Index
Returns Some(i) if the object has been indexed, or None.
Returns Some(i) if the object has been indexed, or None.
- Inherited from:
- Index
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
- Inherited from:
- IterableOnceOps
Deprecated and Inherited methods
@deprecated(message = "Use ++ instead of ++: for collections of type Iterable", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use ++ instead of ++: for collections of type Iterable- Inherited from:
- IterableOps
@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use foldLeft instead of /:- Inherited from:
- IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use foldRight instead of :\\- Inherited from:
- IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
- Deprecated
[Since version 2.13.0]`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.- Inherited from:
- IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use iterableFactory instead- Inherited from:
- IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use `dest ++= coll` instead- Inherited from:
- IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)- Inherited from:
- IterableOnceOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use coll instead of repr in a collection implementation, use the collection value itself from the outside- Inherited from:
- IterableOps
@deprecated(message = "Iterable.seq always returns the iterable itself", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Iterable.seq always returns the iterable itself- Inherited from:
- Iterable
@deprecated(message = "toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.7")
- Deprecated
[Since version 2.13.7]toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- Iterable
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use .iterator instead of .toIterator- Inherited from:
- IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use .to(LazyList) instead of .toStream- Inherited from:
- IterableOnceOps
@deprecated(message = "toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.0")
- Deprecated
[Since version 2.13.0]toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- IterableOps
@deprecated(message = "Use .view.slice(from, until) instead of .view(from, until)", since = "2.13.0")
- Deprecated
[Since version 2.13.0]Use .view.slice(from, until) instead of .view(from, until)- Inherited from:
- IterableOps