
14 Dec
2010
14 Dec
'10
8:48 p.m.
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. -Brent