determining if a int is a power

Wolfgang Jeltsch wolfgang at jeltsch.net
Sat Nov 8 11:31:44 EST 2003


Am Samstag, 8. November 2003, 00:22 schrieb Hamilton Richards:
> Also note that
>
> 	if x then True else False
>
> is just a verbose way of writing
>
> 	x

Actually, it's just a verbose way of writing x `seq` x, but this detail is, of 
course, not interesting for beginners.

Wolfgang



More information about the Haskell-Cafe mailing list