Unit type
Type allowing only one value in type theory
In the area of mathematical logic and computer science known as type theory, a unit type is a type that allows only one value (and thus can hold no information). The carrier (underlying set) associated with a unit type can be any singleton set.
Nº Q1307872 ★★
Uncommon · Knowledge
Unit type
Type allowing only one value in type theory
In the area of mathematical logic and computer science known as type theory, a unit type is a type that allows only one value (and thus can hold no information). The carrier (underlying set) associated with a unit type can be any singleton set.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
In the area of mathematical logic and computer science known as type theory, a unit type is a type that allows only one value (and thus can hold no information). The carrier (underlying set) associated with a unit type can be any singleton set. There is an isomorphism between any two such sets, so it is customary to talk about the unit type and ignore the details of its value. One may also regard the unit type as the type of 0-tuples, i.e. the product of no types. The unit type is the terminal object in the category of types and typed functions. It should not be confused with the zero or empty type, which allows no values and is the initial object in this category. Similarly, the Boolean is the type with two values. The unit type is implemented in most functional programming languages. The void type that is used in some imperative programming languages serves some of its functions, but because its carrier set is empty, it has some limitations (as detailed below).
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
Dependent type
Data type whose definition depends on a value
Nº Q997433 ★★
Monomial
Polynomial which has only one term
Nº Q243723 ★★★
Bit
Basic unit of information in computing and digital communications
Nº Q8805 ★★★
Absoluteness (logic)
In mathematical logic, property of formula that has the same truth value in each of some class of structures
Nº Q4669873 ★
Undefined (mathematics)
Mathematical concept which does not have meaning and so which is not assigned an interpretation
Nº Q7883028 ★
Mole (unit)
SI unit of amount of substance
Nº Q41509 ★★★★