Jump to content

Talk:Factors of an integer: Difference between revisions

(Perhaps a narrower layout for readability of the 97 char Haskell line ?)
Line 40:
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)
 
<lang haskell>factors_o :: Integral a => a -> [a]
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.