definition:
|
update :: Array b -> Int -> b -> Array b
update (Array dflt a) i v =
Array dflt (at (dflt i) a i (const v))
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Inserts a new entry into an array.
--- @param array - array to modify
--- @param idx - index of update
--- @param val - value to update at index idx
--- Entries already initialized will be overwritten.
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({Array},_,_) |-> {Array}}
|
name:
|
update
|
precedence:
|
no precedence defined
|
result-values:
|
{Array}
|
signature:
|
Array a -> Prelude.Int -> a -> Array a
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|