Re: An attempt at foldr/build fusion for zip

2001-04-23 Thread Olaf Chitil
Hi Matt, I think I may have found a way to get zip friends to fuse with *both* of their input lists. ... I have no idea what kind of code this would actually end up creating. However, that is the important point. The goal of deforestation/fusion is to optimise a program. Removing data

Re: An attempt at foldr/build fusion for zip

2001-04-23 Thread Marcin 'Qrczak' Kowalczyk
Sun, 22 Apr 2001 08:45:45 -0500, Matt Harden [EMAIL PROTECTED] 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

An attempt at foldr/build fusion for zip

2001-04-22 Thread Matt Harden
Hi, I think I may have found a way to get zip friends to fuse with *both* of their input lists. I am not a heavy ghc hacker, though, so I may be missing something important that makes this unworkable. I have no idea what kind of code this would actually end up creating. Anyway, here's my