Idris2Doc : Data.AssocList.Indexed

Data.AssocList.Indexed

(source)

Definitions

recordAssocList : Nat->Type->Type
Totality: total
Visibility: export
Constructor: 
AL : Repke->AssocListke

Projection: 
.ps : AssocListke->Repke

Hints:
Eqe=>Eq (AssocListke)
Foldable (AssocListk)
Functor (AssocListk)
Showe=>Show (AssocListke)
Traversable (AssocListk)
weakenAL : AssocListke->AssocList (Sk) e
Totality: total
Visibility: export
weakenALN : (0m : Nat) ->AssocListke->AssocList (k+m) e
Totality: total
Visibility: export
empty : AssocListke
Totality: total
Visibility: export
singleton : Fink->e->AssocListke
Totality: total
Visibility: export
pairs : AssocListke->List (Fink, e)
Totality: total
Visibility: export
mapKV : (Fink->e->b) ->AssocListke->AssocListkb
Totality: total
Visibility: export
foldlKV : (Fink->acc->e->acc) ->acc->AssocListke->acc
Totality: total
Visibility: export
traverseKV : Applicativef=> ((Fink, e) ->fb) ->AssocListke->f (AssocListkb)
Totality: total
Visibility: public export
lookup : Fink->AssocListke->Maybee
  Lookup a key in an assoc list.

Totality: total
Visibility: export
hasKey : AssocListke->Fink->Bool
  Checks if an `AssocList` has an entry for the given key.

Totality: total
Visibility: export
nonEmpty : AssocListke->Bool
Totality: total
Visibility: export
isEmpty : AssocListke->Bool
Totality: total
Visibility: export
keys : AssocListke->List (Fink)
  Extracts the keys from the assoc list.

Totality: total
Visibility: export
values : AssocListke->Liste
  Extracts the values from the assoc list.

Totality: total
Visibility: export
length : AssocListke->Nat
Totality: total
Visibility: export
insert : Fink->e->AssocListke->AssocListke
  Inserts a new key / value pair into an assoc list.

Note: If the given key `k` is already present in the assoc list,
its associated value will be replaced with the new value.

Totality: total
Visibility: export
insertWith : (e->e->e) ->Fink->e->AssocListke->AssocListke
  Like `insert` but in case `k` is already present in the assoc
list, the `v` will be cobine with the old value via function `f`.

Totality: total
Visibility: export
fromList : List (Fink, e) ->AssocListke
Totality: total
Visibility: export
delete : Fink->AssocListke->AssocListke
  Tries to remove the entry with the given key from the
assoc list. The key index of the result will be equal to
or greater than `m`.

Totality: total
Visibility: export
mapMaybe : (e->Maybeb) ->AssocListke->AssocListkb
  Applies the given function to all values, keeping only the
`Just` results.

Totality: total
Visibility: export
mapMaybeK : (Fink->e->Maybeb) ->AssocListke->AssocListkb
  Applies the given function to all key / value pairs, keeping only the
`Just` results.

Totality: total
Visibility: export
update : Fink-> (e->e) ->AssocListke->AssocListke
  Updates the value at the given position by applying the given function.

Totality: total
Visibility: export
updateA : Applicativef=>Fink-> (e->fe) ->AssocListke->f (AssocListke)
  Updates the value at the given position by applying the given effectful
computation.

Totality: total
Visibility: export
union : AssocListke->AssocListke->AssocListke
  Computes the union of two assoc lists.

In case of identical keys, the value of the second list
is dropped. Use `unionWith` for better control over handling
duplicate entries.

Totality: total
Visibility: export
unionMap : (e->e->b) -> (e->b) ->AssocListke->AssocListke->AssocListkb
  Like `union` but in case of identical keys appearing in
both lists, the associated values are combined using
function `f`. Otherwise, values are converted with `g`.

Totality: total
Visibility: export
unionWith : (e->e->e) ->AssocListke->AssocListke->AssocListke
  Like `union` but in case of identical keys appearing in
both lists, the associated values are combined using
function `f`.

Totality: total
Visibility: export
intersectWith : (e->e->b) ->AssocListke->AssocListke->AssocListkb
  Computes the intersection of two assoc lists, keeping
only entries appearing in both lists. Values of the two
lists are combine using function `f`.

Totality: total
Visibility: export
intersect : AssocListke->AssocListke->AssocListke
  Computes the intersection of two assoc lists, keeping
only entries appearing in both lists. Only the values of
the first list are being kept.

Totality: total
Visibility: export
filterLin : (Fink->F1sBool) ->AssocListke->F1s (AssocListke)
  Filter an assoc list via a linear function.

Totality: total
Visibility: export
minBy : Ordb=> (a->b) ->AssocListka->Maybe (Fink, a)
  Using a comparator, find the minimal value and its
index in an assoc list.

Totality: total
Visibility: export