CDuce/Types/Boolean connectives

< CDuce‎ | Types

ConjunctionEdit

#print_type 1--7 | 5--10;;
-> 1--10
type IntOrChar = Int | Char;;

DisjunctionEdit

#print_type 1--7 & 5--10;;
-> 5--7

DifferenceEdit

#print_type Int \ 0;;
-> *---1 | 1--*

Empty setEdit

#print_type 1--3 & 5--6;;
Empty

Universal typeEdit

"Any" is the set of all the values. "_" is the same thing, but is preferred in patterns context.

#print_type _;;
-> Any