
17 Apr
2007
17 Apr
'07
7:36 p.m.
G'day all.
Quoting apfelmus
(Btw, pairs (Int,Int) are members of the Ix class as well, so there is no need to generate an array of arrays.
I know. It originally used lists, which is why it looks like that. I only allowed myself half an hour to write & debug this, so what you see is what you get. BTW, the fact that it's possible to write a working diff from scratch in half an hour and in only 100 or so lines is remarkable, I think. And it's the combination of all of those Haskell features that I mentioned which makes it possible. Cheers, Andrew Bromage