Idris2Doc : Data.Vect.Extra1

Data.Vect.Extra1

Move these to stdlib Data.Vect.Extra

Definitions

mapWithPosTabulate : (f : (Finn->a->b)) -> (x : a) ->mapWithPosf (replicatenx) =tabulate (flipfx)
Totality: total
Visibility: export
mapWithPosAsTabulate : (f : (Finn->a->b)) -> (xs : Vectna) ->mapWithPosfxs=tabulate (\i=>fi (indexixs))
Totality: total
Visibility: export
mapWithPosIrrelevant : ((0_ : Finn) ->a->b) ->Vectna->Vectnb
  Version of `map` with runtime-irrelevant access to the current position

Totality: total
Visibility: public export
mapWithPosFusion : (f : (Finn->b->c)) -> (g : (a->b)) -> (xs : Vectna) ->mapWithPosf (mapgxs) =mapWithPos (\i=>fi.g) xs
Totality: total
Visibility: export
indexIndexSumLeft : (p : Finm) ->index (indexSum (Leftp)) (xs++ys) =indexpxs
Totality: total
Visibility: export
indexIndexSumRight : (0p : Finn) ->index (indexSum (Rightp)) (xs++ys) =indexpys
Totality: total
Visibility: export