
14 May
2007
14 May
'07
10:29 a.m.
On Mon, 14 May 2007, Malcolm Wallace wrote:
Perhaps I should just rewrite the 'exactly' combinator to have the behaviour you desire? Its current definition is:
exactly 0 p = return [] exactly n p = do x <- p xs <- exactly (n-1) p return (x:xs)
Is there a difference between 'exactly' and 'replicateM' ?