Companion object for abstract class Every.
Attributes
- Companion
- class
- Source
- Every.scala
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Every.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Constructs a new Every given at least one element.
Constructs a new Every given at least one element.
Type parameters
- T
-
the type of the element contained in the new
Every
Value parameters
- firstElement
-
the first element (with index 0) contained in this
Every - otherElements
-
a varargs of zero or more other elements (with index 1, 2, 3, ...) contained in this
Every
Attributes
- Source
- Every.scala
Optionally construct an Every containing the elements, if any, of a given GenSeq.
Optionally construct an Every containing the elements, if any, of a given GenSeq.
Value parameters
- seq
-
the
GenSeqwith which to construct anEvery
Attributes
- Returns
-
an
Everycontaining the elements of the givenGenSeq, if non-empty, wrapped in aSome; elseNoneif theGenSeqis empty - Source
- Every.scala
Variable argument extractor for Everys.
Variable argument extractor for Everys.
Value parameters
- every:
-
the
Everycontaining the elements to extract
Attributes
- Returns
-
an
Seqcontaining thisEverys elements, wrapped in aSome - Source
- Every.scala
Implicits
Implicits
Implicit conversion from Every to immutable IndexedSeq.
Implicit conversion from Every to immutable IndexedSeq.
One use case for this implicit conversion is to enable GenSeq[Every]s to be flattened. Here's an example:
scala> Vector(Every(1, 2, 3), Every(3, 4), Every(5, 6, 7, 8)).flatten res0: scala.collection.immutable.Vector[Int] = Vector(1, 2, 3, 3, 4, 5, 6, 7, 8)
Value parameters
- every
-
the
Everyto convert to aIterableOnce
Attributes
- Returns
-
an immutable
IndexedSeqcontaining the elements, in order, of thisEvery - Source
- Every.scala