Idris2Doc : Data.Vect.Elem

Data.Vect.Elem

Definitions

dataElem : a->Vectka->Type
  A proof that some element is found in a vector

Totality: total
Visibility: public export
Constructors:
Here : Elemx (x::xs)
There : Elemxxs->Elemx (y::xs)

Hints:
DecEq (Elemxxs)
InjectiveThere
Uninhabited (Here=Theree)
Uninhabited (Theree=Here)
Uninhabited (Elemx [])
Uninhabited (x=z) =>Uninhabited (Elemzxs) =>Uninhabited (Elemz (x::xs))
neitherHereNorThere : Not (x=y) ->Not (Elemxxs) ->Not (Elemx (y::xs))
  An item not in the head and not in the tail is not in the Vect at all

Totality: total
Visibility: export
isElem : DecEqa=> (x : a) -> (xs : Vectna) ->Dec (Elemxxs)
  A decision procedure for Elem

Totality: total
Visibility: public export
get : (xs : Vectna) ->Elemxxs->a
  Get the element at the given position.

Totality: total
Visibility: public export
lookup : (xs : Vectna) ->Elemxxs->Singletonx
  Get the element at the given position, with proof that it is the desired element.

Totality: total
Visibility: public export
replaceElem : (xs : Vectkt) ->Elemxxs-> (y : t) -> (ys : Vectkt**Elemyys)
Totality: total
Visibility: public export
replaceByElem : (xs : Vectkt) ->Elemxxs->t->Vectkt
Totality: total
Visibility: public export
mapElem : (1_ : Elemxxs) ->Elem (fx) (mapfxs)
Totality: total
Visibility: public export
dropElem : (xs : Vect (Sk) t) ->Elemxxs->Vectkt
  Remove the element at the given position.

@xs The vector to be removed from
@p A proof that the element to be removed is in the vector

Totality: total
Visibility: public export
elemToFin : Elemxxs->Finn
  Erase the indices, returning the bounded numeric position of the element

Totality: total
Visibility: public export
indexElem : (1_ : Finn) -> (xs : Vectna) -> (x : a**Elemxxs)
  Find the element with a proof at a given bounded position

Totality: total
Visibility: public export