[Haskell-beginners] Strange behavior of program
Carsten König
Spam at gettingsharper.de
Sun Mar 8 11:22:45 UTC 2015
Try
> foldl (*) 1 [1,2,4,8,32,64,128,256,512,1024,2048,4906,8192]
and then
> foldl (*) 1 [1,2,4,8,32,64,128,256,512,1024,2048,4906,8192] :: Int
what do you see?
You might want to check with
> :t foldl (*) 1 [1,2,4,8,32,64,128,256,512,1024,2048,4906,8192]
next
Am 08.03.2015 um 11:59 schrieb m00nlight:
> foldl (*) 1 [1,2,4,8,32,64,128,256,512,1024,2048,4906,8192]
More information about the Beginners
mailing list