Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I really donot know how to use `newtype` ?

Name: Anonymous 2009-11-27 13:53

then how to use `newtype` ?  Would you mind explaining the newtype in detail ?

Sinerely!

___________________________________
fac n = foldr (*) 1 [1..n]

Name: Anonymous 2009-11-27 14:26

>>5
They're both unoptimized. foldl' (*) 1 [2..n] would be faster and use more space-efficient.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List