Idris2Doc : Control.Lens.Traversal

Control.Lens.Traversal

(source)

Definitions

recordIsTraversal : (Type->Type->Type) ->Type
Totality: total
Visibility: public export
Constructor: 
MkIsTraversal : Traversingp->IsTraversalp

Projection: 
.runIsTraversal : IsTraversalp->Traversingp

Hints:
IsTraversalp=>IsOptionalp
IsFoldp=>IsTraversalp
IsTraversalp=>IsTraversal (Indexedip)
IsSetterp=>IsTraversalp
.runIsTraversal : IsTraversalp->Traversingp
Totality: total
Visibility: public export
runIsTraversal : IsTraversalp->Traversingp
Totality: total
Visibility: public export
traversalToOptional : IsTraversalp=>IsOptionalp
Totality: total
Visibility: export
indexedTraversal : IsTraversalp=>IsTraversal (Indexedip)
Totality: total
Visibility: export
0Traversal : Type->Type->Type->Type->Type
  A traversal is a lens that may have more than one focus.

Totality: total
Visibility: public export
0Traversal' : Type->Type->Type
  `Traversal'` is the `Simple` version of `Traversal`.

Totality: total
Visibility: public export
0IndexedTraversal : Type->Type->Type->Type->Type->Type
  An indexed traversal allows access to the indices of the values as they are
being modified.

Totality: total
Visibility: public export
0IndexedTraversal' : Type->Type->Type->Type
  `IndexedTraversal'` is the `Simple` version of `IndexedTraversal`.

Totality: total
Visibility: public export
traversal : (Applicativef=> (a->fb) ->s->ft) ->Traversalstab
  Construct a traversal from a `traverse`-like function.

Totality: total
Visibility: public export
itraversal : (Applicativef=> (i->a->fb) ->s->ft) ->IndexedTraversalistab
  Construct an indexed traversal from a `traverse`-like function.

Totality: total
Visibility: public export
iordinal : Numi=>Traversalstab->IndexedTraversalistab
  Convert a traversal into an indexed traversal, adding an index for the
ordinal position of the focus.

Totality: total
Visibility: public export
traversed : Traversablet=>Traversal (ta) (tb) ab
  Derive a traversal from a `Traversable` implementation.

Totality: total
Visibility: public export
itraversed : Numi=>Traversablet=>IndexedTraversali (ta) (tb) ab
  Derive an indexed traversal from a `Traversable` implementation.

Totality: total
Visibility: public export
both : Bitraversablet=>Traversal (taa) (tbb) ab
  Contstruct a traversal over a `Bitraversable` container with matching types.

Totality: total
Visibility: public export
backwards : Traversalstab->Traversalstab
  Reverse the order of a traversal's focuses.

Totality: total
Visibility: public export
traverseOf : Applicativef=>Traversalstab-> (a->fb) ->s->ft
  Map each focus of a traversal to a computation, evaluate those computations
and combine the results.

Totality: total
Visibility: public export
itraverseOf : Applicativef=>IndexedTraversalistab-> (i->a->fb) ->s->ft
  Map each focus of a traversal to a computation with acces to the index,
evaluate those computations and combine the results.

Totality: total
Visibility: public export
forOf : Applicativef=>Traversalstab->s-> (a->fb) ->ft
  A version of `traverseOf` but with the arguments flipped.

Totality: total
Visibility: public export
iforOf : Applicativef=>IndexedTraversalistab->s-> (i->a->fb) ->ft
  A version of `itraverseOf` but with the arguments flipped.

Totality: total
Visibility: public export
sequenceOf : Applicativef=>Traversalst (fa) a->s->ft
  Evaluate each computation within the traversal and collect the results.

Totality: total
Visibility: public export
mapAccumLOf : Traversalstab-> (acc->a-> (acc, b)) ->acc->s-> (acc, t)
  Fold across the focuses of a traversal from the leftmost focus, providing a
replacement value for each, and return the final accumulator along with the
new structure.

Totality: total
Visibility: public export
mapAccumROf : Traversalstab-> (acc->a-> (acc, b)) ->acc->s-> (acc, t)
  Fold across the focuses of a traversal from the rightmost focus, providing a
replacement value for each, and return the final accumulator along with the
new structure.

Totality: total
Visibility: public export
scanl1Of : Traversalstaa-> (a->a->a) ->s->t
  Fold across the focuses of a traversal from the left, returning each
intermediate value of the fold.

Totality: total
Visibility: public export
scanr1Of : Traversalstaa-> (a->a->a) ->s->t
  Fold across the focuses of a traversal from the right, returning each
intermediate value of the fold.

Totality: total
Visibility: public export
failover : Alternativef=>Traversalstab-> (a->b) ->s->ft
  Try to map over a traversal, failing if the traversal has no focuses.

Totality: total
Visibility: public export
ifailover : Alternativef=>IndexedTraversalistab-> (i->a->b) ->s->ft
  Try to map over an indexed traversal, failing if the traversal has no focuses.

Totality: total
Visibility: public export
partsOf : Traversalstaa->Lensst (Lista) (Lista)
  Convert a traversal into a lens over a list of values.

Note that this is only a true lens if the invariant of the list's length is
maintained. You should avoid mapping `over` this lens with a function that
changes the list's length.

Totality: total
Visibility: public export
ipartsOf : IndexedTraversalistaa->IndexedLens (Listi) st (Lista) (Lista)
  Convert an indexed traversal into an indexed lens over a list of values, with
access to a list of indices.

Note that this is only a true lens if the invariant of the list's length is
maintained. You should avoid mapping `over` this lens with a function that
changes the list's length.

Totality: total
Visibility: public export
singular : Traversal'sa->Optional'sa
  Construct an optional that focuses on the first value of a traversal.

For the fold version of this, see `pre`.

Totality: total
Visibility: public export
isingular : IndexedTraversal'isa->IndexedOptional'isa
  Construct an indexed optional that focuses on the first value of an
indexed traversal.

For the fold version of this, see `ipre`.

Totality: total
Visibility: public export
elementsOf : Traversalstaa-> (Nat->Bool) ->Traversalstaa
  Filter the focuses of a traversal by a predicate on their ordinal positions.

Totality: total
Visibility: public export
elements : Traversablet=> (Nat->Bool) ->Traversal' (ta) a
  Traverse over the elements of a `Traversable` container that satisfy a
predicate.

Totality: total
Visibility: public export
elementOf : Traversal'sa->Nat->Optional'sa
  Construct an optional that focuses on the nth element of a traversal.

Totality: total
Visibility: public export
element : Traversablet=>Nat->Optional' (ta) a
  Construct an optional that focuses on the nth element of a `Traversable`
container.

Totality: total
Visibility: public export
taking : Nat->Traversalstaa->Traversalstaa
  Limit a traversal to its first `n` focuses.

Totality: total
Visibility: public export
dropping : Nat->Traversalstaa->Traversalstaa
  Remove the first `n` focuses from a traversal.

Totality: total
Visibility: public export