scala.collection.`package`.:+
An extractor used to init/last deconstruct sequences.
Attributes
- Source
-
package.scala
- Graph
-
- Supertypes
-
- Self type
-
Members list
Splits a sequence into init :+ last.
Splits a sequence into init :+ last.
Type parameters
- A
-
the element type of the sequence
- CC
-
the type constructor of the sequence (e.g., List, Vector)
Attributes
- Returns
-
Some((init, last)) if the sequence is non-empty, None otherwise
- Source
-
package.scala