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

Cale Gibbard cgibbard at gmail.com
Wed Jul 24 13:48:14 UTC 2019


Does lambda not exist for a reason?

On Tue, 23 Jul 2019 at 22:59, Tony Morris <tmorris at tmorris.net> wrote:
>
> 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
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries


More information about the Libraries mailing list