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: 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

Example 1

Input: unionBy (\x y -> x*3==y) [1,2,3,4] [4,6,9,10]

Output: [1,2,3,4,4,10]