[Haskell-cafe] bimap 0.2

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Feb 5 05:41:14 EST 2008


Hello Neil,

Tuesday, February 5, 2008, 1:11:47 PM, you wrote:

> insert x y = delete  x
>          >>> deleteR y
>          >>> unsafeInsert x y

i use the following trick:

(.$) = flip ($)

insert x y it = it.$ delete  x
                  .$ deleteR y
                  .$ unsafeInsert x y


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list