An attempt at foldr/build fusion for zip

Marcin 'Qrczak' Kowalczyk
23 Apr 2001 15:30:05 GMT

Sun, 22 Apr 2001 08:45:45 -0500, Matt Harden <> pisze:

> I think I may have found a way to get zip & friends to fuse with *both*
> of their input lists.

I tried to put in PrelList, changed foldr2_both to use a local
recursive function which doesn't pass k around which allows to inline
k, and a test shows that it's unfortunately slightly slower than
the original.

 __("<  Marcin Kowalczyk *
  ^^                      SYGNATURA ZASTĘPCZA