ConsOps

final case class ConsOps[S, A, B](s: S) extends AnyVal
trait Product
trait Equals
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def cons(implicit ev: Cons[S, A]): AppliedPrism[S, (A, S)]

optionally splits the head and the tail of a data structure

optionally splits the head and the tail of a data structure

def headOption(implicit ev: Cons[S, A]): AppliedAffineTraversal[S, A]

optionally selects the first element of a data structure

optionally selects the first element of a data structure

def tailOption(implicit ev: Cons[S, A]): AppliedAffineTraversal[S, S]

optionally selects the tail of a data structure

optionally selects the tail of a data structure

Inherited methods

Inherited from:
Product