CurryInfo: base-3.4.0 / Data.List.replace

definition: Info
 
replace :: a -> Int -> [a] -> [a]
replace _ _ []     = []
replace x p (y:ys) | p==0      = x:ys
                   | otherwise = y:(replace x (p-1) ys)
demand: Info
 argument 3
deterministic: Info
 deterministic operation
documentation: Info
 
Replaces an element in a list.
@param x - the new element
@param p - the position of the new element (head = 0)
@param ys - the old list
@return the new list where the `p`. element is replaced by `x`
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,{[]}) |-> {[]} || (_,_,{:}) |-> {:}}
name: Info
 replace
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 a -> Prelude.Int -> [a] -> [a]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term