Is there a function \x -> (x, x) in standard libraries?

Tony Morris tmorris at tmorris.net
Wed Jul 24 02:59:13 UTC 2019


I like dup and yes I have written this function hundreds of times.

dup =  join (,)

Would be good to have it in base.



On Thu, Jul 18, 2019 at 5:16 PM Henrik Nilsson <
Henrik.Nilsson at nottingham.ac.uk> wrote:

> On 07/17/2019 12:26 PM, Andreas Abel wrote:
> > On 2019-07-16 23:21, Dan Burton wrote:
> >> +1 for "dup", if it is to be included at all.
> >
> > Same here.  --Andreas
>
> And +1 from me. It's a well established name in the literature.
>
> /Henrik
>
>
>
>
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please contact the sender and delete the email and
> attachment.
>
> Any views or opinions expressed by the author of this email do not
> necessarily reflect the views of the University of Nottingham. Email
> communications with the University of Nottingham may be monitored
> where permitted by law.
>
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20190724/ec0c6752/attachment.html>


More information about the Libraries mailing list