determining if a int is a power

ketil+haskell at ii.uib.no ketil+haskell at ii.uib.no
Mon Nov 10 09:27:27 EST 2003


<ddekker6 at chello.nl> writes:

> I'm new to haskell and have to do some excersises. 

Okay.  Thank you for being up-front about it.  You got some advice, so
I'll just add that

> So i have been trying using "any" with a helper function

Yep, this is a good way to do it.  You may want to consider "filter"
or "map" as well, depending on what you want for result.

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list