Proposal: Add chop function to Data.List
byorgey at seas.upenn.edu
Wed Dec 15 02:48:35 CET 2010
On Mon, Dec 13, 2010 at 05:17:43PM +0000, Lennart Augustsson wrote:
> I would like to propose the following function for inclusion in Data.List
> chop :: (a -> (b, [a]) -> [a] -> [b]
> chop _  = 
> chop f as = b : chop f as'
> where (b, as') = f as
I've just uploaded a new version of the 'split' package which exports
chop. If it does get added to Data.List (of which I'm in favor)
I'll remove it from split.
More information about the Libraries