Unconsable

trait Unconsable[C[_]]

Typeclass for collections that can be efficiently split into a head element and a tail collection as long as they are not empty.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def uncons[A](coll: C[A]): Option[(A, C[A])]

Returns either Some(head -> tail) or None depending on whether the given coll is empty.

Returns either Some(head -> tail) or None depending on whether the given coll is empty.