Adding swap to Data.Tuple

roconnor at theorem.ca roconnor at theorem.ca
Wed Jun 17 13:52:46 EDT 2009


On Tue, 16 Jun 2009, Neil Mitchell wrote:

> What is the need for swap' ? Things like foldl' solve space leaks,
> what does swap' solve? I fully agree on the addition of swap.

I'm not sure what swap' solves.  I just think it has a pretty symmetry to 
it.  I presume one of these pro-strict-swap people can come up with an 
example of where swap' solves a problem.

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''


More information about the Libraries mailing list