producing and consuming lists
Hal Daume III
hdaume@ISI.EDU
Wed, 6 Nov 2002 08:05:53 -0800 (PST)
Jorge,
> But like I just showed, sometimes paring them may not be a natural approach
> though...
Yeah, I understand what you mean. In the examples you give, you could
always try to make the appended stuff (the zs, etc) the same length by
appending Nothings, but probalby not a general solution.
I wonder if, given you original function which returns ([Int],[Int]), you
couldn't do something really ugly like using unsafeInterleaveIO on writing
the first list, and then write the second list "by hand".
Just a thought.
- Hal