definition: |
nubBy :: (a -> a -> Bool) -> [a] -> [a] nubBy _ [] = [] nubBy eq (x:xs) = x : nubBy eq (filter (\y -> not (eq x y)) xs) |
demand: |
argument 2 |
deterministic: |
deterministic operation |
documentation: |
Removes all duplicates in the argument list according to an equivalence relation. |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,{[]}) |-> {[]} || (_,{:}) |-> {:}} |
name: |
nubBy |
precedence: |
no precedence defined |
result-values: |
{:,[]} |
signature: |
(a -> a -> Prelude.Bool) -> [a] -> [a] |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
reducible on all ground data terms |