IsSeq

scala.collection.generic.IsSeq
See theIsSeq companion object
trait IsSeq[Repr] extends IsIterable[Repr]

Type class witnessing that a collection representation type Repr has elements of type A and has a conversion to SeqOps[A, Iterable, C], for some types A and C.

This type enables simple enrichment of Seqs with extension methods which can make full use of the mechanics of the Scala collections framework in their implementation.

Attributes

See also
Companion
object
Source
IsSeq.scala
Graph
Supertypes
trait IsIterable[Repr]
trait IsIterableOnce[Repr]
class Object
trait Matchable
class Any

Members list

Type members

Types

type C
Implicitly added by isSeqLikeIsIterable

The type returned by transformation operations that preserve the same elements type (e.g.

The type returned by transformation operations that preserve the same elements type (e.g. filter, take).

In practice, this type is often Repr itself, excepted in the case of SeqView[A] (and other View[A] subclasses), where it is “only” View[A].

Attributes

Source
IsIterable.scala

Inherited types

type A
Implicitly added by isSeqLikeIsIterable

The type of elements we can traverse over (e.g.

The type of elements we can traverse over (e.g. Int).

Attributes

Inherited from:
IsIterableOnce
Source
IsIterableOnce.scala
type A

The type of elements we can traverse over (e.g.

The type of elements we can traverse over (e.g. Int).

Attributes

Inherited from:
IsIterableOnce
Source
IsIterableOnce.scala
type C

The type returned by transformation operations that preserve the same elements type (e.g.

The type returned by transformation operations that preserve the same elements type (e.g. filter, take).

In practice, this type is often Repr itself, excepted in the case of SeqView[A] (and other View[A] subclasses), where it is “only” View[A].

Attributes

Inherited from:
IsIterable
Source
IsIterable.scala

Value members

Abstract methods

def apply(coll: Repr): IterableOps[A, Iterable, C]
Implicitly added by isSeqLikeIsIterable

A conversion from the type Repr to IterableOps[A, Iterable, C]

A conversion from the type Repr to IterableOps[A, Iterable, C]

Attributes

Source
IsIterable.scala
def apply(coll: Repr): SeqOps[A, Iterable, C]

A conversion from the type Repr to SeqOps[A, Iterable, C]

A conversion from the type Repr to SeqOps[A, Iterable, C]

Attributes

Note

The second type parameter of the returned SeqOps value is still Iterable (and not Seq) because SeqView[A] only extends SeqOps[A, View, View[A]].

Source
IsSeq.scala

Deprecated fields

override val conversion: Repr => IterableOps[A, Iterable, C]
Implicitly added by isSeqLikeIsIterable

Attributes

Deprecated
true
Source
IsIterable.scala
override val conversion: Repr => SeqOps[A, Iterable, C]

Attributes

Deprecated
true
Source
IsSeq.scala