
28 Jun
2010
28 Jun
'10
5:21 p.m.
On Sun, 27 Jun 2010, Henning Thielemann wrote:
Maybe I can combine splitAtLazy and (++) to a function like splitAtAndAppend :: [x] -> ([a] -> [b]) -> ([a] -> [b]) -> [a] -> [b] but I'm afraid I will need pairs temporarily and then I run into the same problems.
I have now implemented a solution that is tailored to special function types in the first ([a] -> [b]) argument. It works, but it is sad that the general, more declarative solution is so fragile.