#3631: Overload the Prelude iterate to support list input
------------------------------+---------------------------------------------
 Reporter:  shelbymoore3      |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  Prelude           |        Version:  6.10.4          
 Severity:  normal            |     Resolution:                  
 Keywords:                    |       Testcase:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by shelbymoore3):

 Note scanl is more concise for fibs, but iterate is more general.

 fibs3 = 0 : scanl (+) 1 fibs

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3631#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to