Snoc1

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

Typeclass that defines an Iso between an S and its init H and last T Snoc1 is like Snoc but for types that have always an init and a last element, e.g. a non empty list

Typeclass that defines an Iso between an S and its init H and last T Snoc1 is like Snoc but for types that have always an init and a last element, e.g. a non empty list

Type Params
I

init of Iso target, I is supposed to be unique for a given S

L

last of Iso target, L is supposed to be unique for a given S

S

source of Iso

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

Value members

Abstract methods

def snoc1: Iso[S, (I, L)]

Concrete methods

def init: Lens[S, I]
def last: Lens[S, L]