> Yikes: it may be idiomatic, but isn't that nested loop pretty ugly? I guess, but it is just a fold. I could lift the fold function out to the toplevel. What else were you thinking of?