Algebraic data type

/ˌældʒəˈbreɪɪk ˈdeɪtə taɪp/ noun

A composite data type formed by combining other types using two operations: sum (union/variant) and product (tuple/record). Common examples include enums, optional types, and recursive structures like trees.

The term comes from abstract algebra, where 'algebraic' refers to structures defined by operations and laws. Introduced in programming language theory in the 1970s, it draws parallels between type construction and algebraic operations - sum types represent 'OR' relationships, product types represent 'AND' relationships.

📖 Full word page — etymology, 47 translations, audio 🔑 Get Free API Key — 50 lookups/day 📚 Read the Docs — integrate Word Orb