[Haskell-cafe] A brief note on n_k patterns and Hackage

Don Stewart dons at galois.com
Mon May 4 20:26:51 EDT 2009


I think the Hinze streams package I uploaded on Sunday uses n+k...

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hinze-streams-1.0

    turn :: (Integral a) => a -> [a]
    turn 0        =  []
    turn (n + 1)  =  turn n ++ [n] ++ turn n



vanenkj:
> Which package?
> 
> /jve
> 
> 
> On Mon, May 4, 2009 at 8:04 PM, Richard O'Keefe <ok at cs.otago.ac.nz> wrote:
> 
>     I never really understood why it was thought to be relevant,
>     but I was challenged to show that n+k patterns occurred in
>     Hackage.
> 
>     Last week I downloaded it.  I had to miss a couple of days
>     looking after my daughter, but today I got back to it.
> 
>     Guess what?  I found one.  Having found one I stopped looking.
> 
>     I don't want to start another thread, but having promised that
>     I'd look I thought I should follow that up.
> 
>     _______________________________________________
>     Haskell-Cafe mailing list
>     Haskell-Cafe at haskell.org
>     http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> 

> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list