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

Type: | (a -> a -> Bool) -> [a] -> [a] -> [a] |

Description: | similar to intersect, but it allows the programmers to supply their own equality test |

Related: | (\\), delete, deleteBy, intersect, union, unionBy |

Example 1

**Input: **intersectBy (\x y -> x*x == y) [1,2,3,4] [4,8,12,16,20]

**Output: **[2,4]