Idris2Doc : Data.Seq1.Unsized

Data.Seq1.Unsized

(source)
General purpose linear two-end finite sequences.

This is implemented by finger tree.

Reexports

importpublic Data.Zippable

Definitions

dataSeq1 : Type->Type->Type
  A linear two-end finite sequence.

Totality: total
Visibility: export
Constructor: 
MkSeq1 : Refs (FingerTree (Eleme)) ->Seq1se
empty : F1s (Seq1se)
  O(1). The empty sequence.

Totality: total
Visibility: export
singleton : e->F1s (Seq1se)
  O(1). A singleton sequence.

Totality: total
Visibility: export
replicate : Nat->e->F1s (Seq1se)
  O(n). A sequence of length n with a the value of every element.

Totality: total
Visibility: export
length : Seq1sa->F1sNat
  O(1). The number of elements in the sequence.

Totality: total
Visibility: export
reverse : Seq1sa->F1's
  O(n). Reverse the sequence.

Totality: total
Visibility: export
cons : e->Seq1se->F1's
  O(1). Add an element to the left end of a sequence.

Totality: total
Visibility: export
Fixity Declarations:
infixr operator, level 5
infixr operator, level 5
infixr operator, level 5
snoc : Seq1se->e->F1's
  O(1). Add an element to the right end of a sequence.

Totality: total
Visibility: export
Fixity Declarations:
infixl operator, level 5
infixl operator, level 5
infixl operator, level 5
viewl : Seq1se->F1s (Maybe (e, Seq1se))
  O(1). View from the left of the sequence.

Totality: total
Visibility: export
head : Seq1se->F1s (Maybee)
  O(1). The first element of the sequence.

Totality: total
Visibility: export
tail : Seq1se->F1's
  O(1). The elements after the head of the sequence.
Returns an empty sequence when the sequence is empty.

Totality: total
Visibility: export
viewr : Seq1se->F1s (Maybe (Seq1se, e))
  O(1). View from the right of the sequence.

Totality: total
Visibility: export
init : Seq1se->F1's
  O(1). The elements before the last element of the sequence.
Returns an empty sequence when the sequence is empty.

Totality: total
Visibility: export
last : Seq1se->F1s (Maybee)
  O(1). The last element of the sequence.

Totality: total
Visibility: export
fromList : Liste->F1s (Seq1se)
  O(n). Turn a list into a sequence.

Totality: total
Visibility: export
toList : Seq1se->F1s (Liste)
  Turn a sequence into a list. O(n)

Totality: total
Visibility: export
index : Nat->Seq1se->F1s (Maybee)
  O(log(min(i, n-i))). The element at the specified position.

Totality: total
Visibility: export
adjust : (e->e) ->Nat->Seq1se->F1's
  O(log(min(i, n-i))). Update the element at the specified position.
If the position is out of range, the original sequence is returned.

Totality: total
Visibility: export
update : Nat->e->Seq1se->F1's
  O(log(min(i, n-i))). Replace the element at the specified position.
If the position is out of range, the original sequence is returned.

Totality: total
Visibility: export
show' : Showe=>Seq1se->F1sString
  Dump the internal structure of the finger tree.

Totality: total
Visibility: export