On 21/04/07, apfelmus <[EMAIL PROTECTED]> wrote:
Dan Weston wrote:
> -- Why is this not in Prelude?
> dup x = (x,x)

It is (almost). It's called

  join (,)

It's unfortunate that the Monad instance for ((->) e) isn't in the Prelude.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to