ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | >> List << | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
Module: | List |
---|---|
Function: | unionBy |
Type: | (a -> a -> Bool) -> [a] -> [a] -> [a] |
Description: | similar to union, but it allows the programmers to supply their own equality test |
Related: | (\\), delete, deleteBy, intersect, intersectBy, union |
Input: unionBy (\x y -> x*3==y) [1,2,3,4] [4,6,9,10]
Output: [1,2,3,4,4,10]