summaryrefslogtreecommitdiff
path: root/transfer/lib/bool.tr
blob: b8c1c95a50fb3d7d1ca4fad391cc7757d62179d0 (plain)
1
2
3
4
depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B
depif _ _ True x _ = x
depif _ _ False _ y = y