# Algebraic Data Type

Algebraic Data Type is an actively used design pattern. In computer programming, especially functional programming and type theory, an algebraic data type is a kind of composite type, i.e., a type formed by combining other types. Two common classes of algebraic types are product types (i.e., tuples and records) and sum types (i.e., tagged or disjoint unions, coproduct types or variant types).The values of a product type typically contain several values, called fields. All values of that type have the same combination of field types. Read more on Wikipedia...

?Years Old |

- Algebraic Data Type ranks in the top 25% of entities I track
- the Algebraic Data Type wikipedia page
- Have a question about Algebraic Data Type not answered here? Email me and let me know how I can help.

Languages **with** Algebraic Data Type include typescript

### Example from typescript:

declare type numOrString = string | number

Last updated February 18th, 2020