Snoc1

monocle.function.Snoc1
See theSnoc1 companion object
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

Attributes

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
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

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

Attributes

Source:
Snoc1.scala

Concrete methods

def init: Lens[S, I]

Attributes

Source:
Snoc1.scala
def last: Lens[S, L]

Attributes

Source:
Snoc1.scala