Files
gf-core/transfer/lib/bool.tr
2005-11-30 16:00:06 +00:00

5 lines
126 B
Plaintext

depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B
depif _ _ True x _ = x
depif _ _ False _ y = y