Cons1

monocle.function.Cons1
See theCons1 companion object
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

Attributes

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

Members list

Concise view

Value members

Abstract methods

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

Attributes

Source:
Cons1.scala

Concrete methods

def head: Lens[S, H]

Attributes

Source:
Cons1.scala
def tail: Lens[S, T]

Attributes

Source:
Cons1.scala