determining if a int is a power

ketil+haskell at ketil+haskell at
Mon Nov 10 09:27:27 EST 2003

<ddekker6 at> 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.

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

More information about the Haskell-Cafe mailing list