scala.collection.`package`.+:
An extractor used to head/tail deconstruct sequences.
Attributes
- Source
-
package.scala
- Graph
-
- Supertypes
-
- Self type
-
Members list
Splits a sequence into head +: tail.
Splits a sequence into head +: tail.
Type parameters
- A
-
the element type of the sequence
- C
-
the concrete sequence type, providing SeqOps[A, CC, C] for head/tail operations
- CC
-
the type constructor of the sequence (e.g., List, Vector)
Value parameters
- t
-
the sequence to deconstruct into its head and tail
Attributes
- Returns
-
Some((head, tail)) if the sequence is non-empty, None otherwise
- Source
-
package.scala