On Tuesday 25 May 2010 23:47:30, 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 ?
Sure. Lots of things to do it in different ways. All boil down to - for each integer from 1 to 100 - check whether f i == g i Look at http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Prelude.html , there are useful functions for this. You will probably want to use 'and' or 'all'. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
