[Haskell-cafe] where to put general-purpose utility functions

Chris Wong chrisyco+haskell-cafe at gmail.com
Wed Jan 25 00:34:21 CET 2012


>> I like  let (hd, _ : tl) = break prd lst in...
>
> Oh, wait.  That won't always work. :(
>

second (drop 1) . break prd list?

:)

> _______________________________________________
> 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