ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | >> List << | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: List
Function: deleteBy
Type: (a -> a -> Bool) -> a -> [a] -> [a]
Description: similar to delete, but it allows the programmers to supply their own equality test
Related: (\\), delete, intersect, intersectBy, union, unionBy

Example 1

Input: deleteBy (\x y -> y `mod` x == 0) 4 [6,8,10,12]

Output: [6,10,12]