+:

object +:

An extractor used to head/tail deconstruct sequences.

Source:
package.scala
class Object
trait Matchable
class Any
+:.type

Value members

Concrete methods

def unapply[A, CC <: (Seq), C <: SeqOps[A, CC, LazyRef(...)]](t: C & SeqOps[A, CC, C]): Option[(A, C)]

Splits a sequence into head +: tail.

Splits a sequence into head +: tail.

Returns:

Some((head, tail)) if sequence is non-empty. None otherwise.

Source:
package.scala