Fwd: Re: Adding dup to Data.Tuple?

Ivan Perez ivan.perez at keera.co.uk
Sun Oct 28 11:50:14 UTC 2018


Forgot to CC the list.

-------- Forwarded Message --------

Hi,

One place where it pops up all the time is when you have arrows that 
create feedback loops and your output is your accumulator.

For example:

feedback acc0 (someFancyArrow >>> arr dup)

Where someFancyArrow is an arrow with two inputs (input and old 
accumulator) and one output.

Cheers

Ivan

On 28/10/18 00:08, Vanessa McHale wrote:
> Out of curiosity, do you have any examples?
>
> Cheers
>
> On 10/27/18 5:03 PM, Ivan Perez wrote:
>> Dear all,
>>
>> The function \x -> (x,x) is very convenient when working with arrows.
>>
>> Would it be appropriate to add it to Data.Tuple?
>>
>> Cheers,
>>
>> Ivan
>>
>> _______________________________________________
>> 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20181028/2e2841d2/attachment.html>


More information about the Libraries mailing list