Talk:Factors of an integer: Difference between revisions

Content added Content deleted
Line 40: Line 40:
Very nice final list comprehension example there. Thanks !
Very nice final list comprehension example there. Thanks !


Perhaps Johan Tibell style (https://github.com/tibbe/haskell-style-guide) or hindent (http://chrisdone.com/posts/hindent-5) to bring the 97-character withing the 80 character Rosetta guidelines, and for ease of reading ? (PS maybe the Data.List import is not needed with current default builds of GHC ? Those functions all seem to be Prelude default)
Perhaps Johan Tibell style (https://github.com/tibbe/haskell-style-guide) or hindent (http://chrisdone.com/posts/hindent-5) to bring the 97-character within the 80 character Rosetta guidelines, and for ease of reading ? (PS maybe the Data.List import is not needed with current default builds of GHC ? Those functions all seem to be Prelude default)


<lang haskell>factors_o :: Integral a => a -> [a]
<lang haskell>factors_o :: Integral a => a -> [a]