projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6454e08d036f19ab3d0ebbad037acba645d0d729
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
deSugar
/
ds031.hs
1
foldPair :: (a->a->a,b->b->b) -> (a,b) -> [(a,b)] -> (a,b)
2
foldPair fg ab [] = ab
3
foldPair fg@(f,g) ab ((a,b):abs) = (f a u,g b v)
4
where (u,v) = foldPair fg ab abs
5