On Tue, 2010-05-25 at 22:47 +0100, Mujtaba Boori wrote: > Hello > I am try to solve this equation > > > Define a higher order function that tests whether two functions , > both defined on integers , coincide for all integers between 1 and 100 > > > how can I solve this ? > is there any thing in Haskell library to solve this kind ?
Not so beginner answer (but not advanced I guess): import Control.Applicative check f g = all (liftA2 (==) f g) [1..100] Regards
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
