#3671: Add partitioning functions to Data.List
---------------------------------+------------------------------------------
    Reporter:  holzensp          |       Owner:              
        Type:  proposal          |      Status:  new         
    Priority:  normal            |   Milestone:              
   Component:  libraries/base    |     Version:  6.12.1 RC1  
  Resolution:                    |    Keywords:  Data.List   
          Os:  Unknown/Multiple  |    Testcase:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
Comment (by holzensp):

 Correction, obviously:

 {{{
 takeRec i xs = let (hs,ts) = splitAt i xs in hs : takeRec i ts
 spanRec p xs = let (hs,ts) = span    p xs in hs : spanRec p ts
 genericTakeRec i xs = let (hs,ts) = genericSplitAt i xs in hs :
 genericTakeRec i ts
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3671#comment:1>
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