[Haskell-cafe] Re: about Haskell code written to be "too smart"

Robin Green greenrd at greenrd.org
Tue Mar 24 23:01:40 EDT 2009


On Wed, 25 Mar 2009 08:25:40 -0700
Jonathan Cast <jonathanccast at fastmail.fm> wrote:

> Define
> 
>     swap (a, b) = (b, a)

By the way, if you want to be "too smart", there's a generalised
version of swap in Control.Category.Braided in the category-extras
package.

That might be a bit overkill though.
-- 
Robin


More information about the Haskell-Cafe mailing list