definition: |
deleteBy :: (a -> a -> Bool) -> a -> [a] -> [a] deleteBy _ _ [] = [] deleteBy eq x (y:ys) = if eq x y then ys else y : deleteBy eq x ys |
demand: |
argument 3 |
deterministic: |
deterministic operation |
documentation: |
Deletes the first occurrence of an element in a list according to an equivalence relation. |
failfree: |
(_, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,{[]}) |-> {[]} || (_,_,{:}) |-> _} |
name: |
deleteBy |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
(a -> a -> Prelude.Bool) -> a -> [a] -> [a] |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |