An attempt at foldr/build fusion for zip

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
23 Apr 2001 15:30:05 GMT


Sun, 22 Apr 2001 08:45:45 -0500, Matt Harden <matth@mindspring.com> 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 * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK