Idris2Doc : Data.Cotree

Data.Cotree

(source)

Definitions

recordCotree : Type->Type
  A potentially infinite rose tree

Totality: total
Visibility: public export
Constructor: 
MkCotree : a-> Inf (Coforesta) ->Cotreea

Projections:
.forest : Cotreea-> Inf (Coforesta)
.value : Cotreea->a

Hints:
ApplicativeCotree
FunctorCotree
.value : Cotreea->a
Totality: total
Visibility: public export
value : Cotreea->a
Totality: total
Visibility: public export
.forest : Cotreea-> Inf (Coforesta)
Totality: total
Visibility: public export
forest : Cotreea-> Inf (Coforesta)
Totality: total
Visibility: public export
Coforest : Type->Type
  A potentially finit stream of trees

Totality: total
Visibility: public export
singleton : a->Cotreea
Totality: total
Visibility: public export
unfold : (b-> (a, Colistb)) ->b->Cotreea
Totality: total
Visibility: public export
iterate : (a->Colista) ->a->Cotreea
Totality: total
Visibility: public export
expand : (a->Colista) ->Cotreea->Cotreea
Totality: total
Visibility: public export
fromTree : Treea->Cotreea
Totality: total
Visibility: public export
toTree : Nat->Nat->Cotreea->Treea
  Converts a Cotree to a tree of the given maximum depth and width.
The maximum numbers of elements in the tree will be
maxWidth ^ maxDepth.

Totality: total
Visibility: public export
mapCotree : (a->b) ->Cotreea->Cotreeb
Totality: total
Visibility: public export
interleave : Cotree (a->b) ->Cotreea->Cotreeb
Totality: total
Visibility: public export
bind : Cotreea-> (a->Cotreeb) ->Cotreeb
Totality: total
Visibility: public export
bindMaybe : Cotree (Maybea) -> (a->Cotree (Maybeb)) ->Cotree (Maybeb)
Totality: total
Visibility: public export
shrink : Nat->Cotree (Maybea) ->Lista
Totality: total
Visibility: public export
mapShrink : Nat-> (a->Maybeb) ->Cotreea->Listb
Totality: total
Visibility: public export
shrinkIf : Nat-> (a->Bool) ->Cotreea->Lista
Totality: total
Visibility: public export
pruneTo : Nat->Nat->Cotreea->Cotreea
  Prunes a cotree up to the given depth and width.

Totality: total
Visibility: public export
prune : Cotreea->Cotreea
  Removes all children from a cotree

Totality: total
Visibility: public export
takeUntil : (a->Bool) ->Cotreea->Cotreea
Totality: total
Visibility: public export
takeBeforeNothing : Cotree (Maybea) ->Maybe (Cotreea)
Totality: total
Visibility: public export
takeBefore : (a->Bool) ->Cotreea->Maybe (Cotreea)
Totality: total
Visibility: public export
takeWhile : (a->Bool) ->Cotreea->Maybe (Cotreea)
Totality: total
Visibility: public export
mapMaybe : (a->Maybeb) ->Cotreea->Maybe (Cotreeb)
Totality: total
Visibility: public export