Cons1

@implicitNotFound("Could not find an instance of Cons1[${S}, ${H}, ${T}], please check Monocle instance location policy to ".+("find out which import is necessary")) @deprecated("no replacement", since = "3.0.0-M1") abstract class Cons1[S, H, T] extends Serializable

Typeclass that defines an Iso between an S and its head H and tail T Cons1 is like Cons but for types that have always an head and tail, e.g. a non empty list

Typeclass that defines an Iso between an S and its head H and tail T Cons1 is like Cons but for types that have always an head and tail, e.g. a non empty list

Type Params
H

head of Iso target, A is supposed to be unique for a given S

S

source of Iso

T

tail of Iso target, T is supposed to be unique for a given S

Companion
object
Deprecated
[Since version 3.0.0-M1]
Source
Cons1.scala
trait Serializable
class Object
trait Matchable
class Any

Value members

Abstract methods

def cons1: Iso[S, (H, T)]

Concrete methods

def head: Lens[S, H]
def tail: Lens[S, T]