Idris2Doc : Control.Lens.Cons

Control.Lens.Cons

(source)

Definitions

interfaceCons : Type->Type->Type->Type->Type
  An interface that provides a way to detach and inspect elements from the
left side of a sequence.

Parameters: s, t, a, b
Methods:
consIso : Isost (Maybe (a, s)) (Maybe (b, t))
  An isomorphism that can inspect the left side of a sequence.
cons_ : Prismst (a, s) (b, t)
  A prism that can attach or detach a value from the left side of a
sequence.
consIso : Consstab=>Isost (Maybe (a, s)) (Maybe (b, t))
  An isomorphism that can inspect the left side of a sequence.

Totality: total
Visibility: public export
cons_ : Consstab=>Prismst (a, s) (b, t)
  A prism that can attach or detach a value from the left side of a
sequence.

Totality: total
Visibility: public export
head_ : Consssaa=>Optional'sa
  Access the head (left-most element) of a sequence, if it is non-empty.

Totality: total
Visibility: public export
tail_ : Consssaa=>Optional'ss
  Access the tail (all but the left-most element) of a sequence, if it is
non-empty.

Totality: total
Visibility: public export
nil : Consssaa=>s
  Use a `Cons` implementation to construct an empty sequence.

Totality: total
Visibility: public export
interfaceSnoc : Type->Type->Type->Type->Type
  An interface that provides a way to detach and inspect elements from the
right side of a sequence.

Parameters: s, t, a, b
Methods:
snocIso : Isost (Maybe (s, a)) (Maybe (t, b))
  An isomorphism that can inspect the right side of a sequence.
snoc_ : Prismst (s, a) (t, b)
  This is a prism that can attach or detach a value from the right side of a
sequence.
snocIso : Snocstab=>Isost (Maybe (s, a)) (Maybe (t, b))
  An isomorphism that can inspect the right side of a sequence.

Totality: total
Visibility: public export
snoc_ : Snocstab=>Prismst (s, a) (t, b)
  This is a prism that can attach or detach a value from the right side of a
sequence.

Totality: total
Visibility: public export
init_ : Snocssaa=>Optional'ss
  Access all but the right-most element of a sequence, if it is non-empty.

Totality: total
Visibility: public export
last_ : Snocssaa=>Optional'sa
  Access the last (right-most) element of a sequence, if it is non-empty.

Totality: total
Visibility: public export
lin : Snocssaa=>s
  Use a `Snoc` implementation to construct an empty sequence.

Totality: total
Visibility: public export