projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-01-08 20:28:12 by partain]
[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