Yes! intersectionWith is just what I needed. In any case, coming back to your example, why would you want to use undefined in that particular case?
What makes it an interesting example ? Best, Jose On 28-05-2013 12:32, Johannes Waldmann wrote:
Jose A. Lopes <jose.lopes <at> ist.utl.pt> writes:unionWith :: Ord k => (a -> b -> c) -> Map k a -> Map k b -> Map k cwhat should be the result of unionWith undefined (M.singleton False 42) (M.singleton True "bar") ? perhaps you mean intersectionWith, which already has the type you want. - J.W. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
-- José António Branquinho de Oliveira Lopes Instituto Superior Técnico Technical University of Lisbon _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
