encyclopegia.org

Algebraic data type

In computer programming, especially in functional programming and type theory, an algebraic data type (ADT) is a composite data type, i.e.[1] a type formed by combining other types.[src] An algebraic data type is defined by two key constructions: a sum and a product.[6] These are sometimes referred to as "OR" and "AND" types.[src] A sum type is a choice between possibilities.[src] The value of a sum type can match one of several defined variants.[src] For example, a type representing the state of a traffic light could be either Red , Amber , or Green .[src] A shape type could be either a Circle (which stores a radius) or a Square (which stores a width).[src] In formal terms, these variants are known as tagged unions or disjoint unions.[src] Each variant has a name, called a constructor, which can also carry data.[src] Enumerated types are a simple form of sum type where the constructors carry no data.[1] A product type combines types together.[src] A value of a product type will contain a value for each of its component types.[src] For example, a Point type might be defined to contain an x coordinate (an integer) and a y coordinate (also an integer).[src] Formal examples of product types include tuples and records.[src] The set of all possible values of a product type is the Cartesian product of the sets of its component types.[src] Values of algebraic data types are typically handled using pattern matching.…[1]

In computer programming, especially in functional programming and type theory, an algebraic data type (ADT) is a composite data type, i.e.[1] a type formed by combining other types.[src] An algebraic data type is defined by two key constructions: a sum and a product.[6] These are sometimes referred to as "OR" and "AND" types.[src] A sum type is a choice between possibilities.[src] The value of a sum type can match one of several defined variants.[src] For example, a type representing the state of a traffic light could be either Red , Amber , or Green .[src] A shape type could be either a Circle (which stores a radius) or a Square (which stores a width).[src] In formal terms, these variants are known as tagged unions or disjoint unions.[src] Each variant has a name, called a constructor, which can also carry data.[src] Enumerated types are a simple form of sum type where the constructors carry no data.[1] A product type combines types together.[src] A value of a product type will contain a value for each of its component types.[src] For example, a Point type might be defined to contain an x coordinate (an integer) and a y coordinate (also an integer).[src] Formal examples of product types include tuples and records.[src] The set of all possible values of a product type is the Cartesian product of the sets of its component types.[src] Values of algebraic data types are typically handled using pattern matching.[1] This feature allows a programmer to check which constructor a value was made with and extract the data it contains in a convenient and type-safe way.[6] ==History== Algebraic data types were introduced in Hope, a small functional programming language developed in the 1970s at the University of Edinburgh.[1] ==Examples== ===Singly linked list=== One of the most common examples of an algebraic data type is the singly linked list.[6] A list type is a sum type with two variants, Nil for an empty list and Cons x xs for the combination of a new element x with a list xs to create a new list.[src] Here is an example of how a singly linked list would be declared in Haskell: data List a = Nil | Cons a (List a) or data [] a = [] | a : [a] Cons is an abbreviation of construct.[1] Many languages have special syntax for lists defined in this way.[src] For example, Haskell and ML use [] for Nil , : or :: for Cons , respectively, and square brackets for entire lists.[src] So Cons 1 (Cons 2 (Cons 3 Nil)) would normally be written as 1:2:3:[] or [1,2,3] in Haskell, or as 1::2::3::[] or [1,2,3] in ML.[src] ===Binary tree=== For a slightly more complex example, binary trees may be implemented in Haskell as follows: data Tree = Empty | Leaf Int | Node Int Tree Tree or data BinaryTree a = BTNil | BTNode a (BinaryTree a) (BinaryTree a) Here, Empty represents an empty tree, Leaf represents a leaf node, and Node organizes the data into branches.[1] In most languages that support algebraic data types, it is possible to define parametric types.[1] Examples are given later in this article.[6] Somewhat similar to a function, a data constructor is applied to arguments of an appropriate type, yielding an instance of the data type to which the type constructor belongs.[6] For example, the data constructor Leaf is logically a function Int -> Tree , meaning that giving an integer as an argument to Leaf produces a value of the type Tree .[6] As Node takes two arguments of the type Tree itself, the datatype is recursive.[src] Operations on algebraic data types can be defined by using pattern matching to retrieve the arguments.[1] For example, consider a function to find the depth of a Tree , given here in Haskell: depth :: Tree -> Int depth Empty = 0 depth (Leaf n) = 1 depth (Node n l r) = 1 + max (depth l) (depth r) Thus, a Tree given to depth can be constructed using any of Empty , Leaf , or Node and must be matched for any of them respectively to deal with all cases.[src] In case of Node , the pattern extracts the subtrees l and r for further processing.[src] ===Abstract syntax=== Algebraic data types are highly suited to implementing abstract syntax.[1] For example, the following algebraic data type describes a simple language representing numerical expressions: data Expression = Number Int | Add Expression Expression | Minus Expression Expression | Mult Expression Expression | Divide Expression Expression An element of such a data type would have a form such as Mult (Add (Number 4) (Minus (Number 0) (Number 1))) (Number 2) .[1] Writing an evaluation function for this language is a simple exercise; however, more complex transformations also become feasible.[src] For example, an optimization pass in a compiler might be written as a function taking an abstract expression as input and returning an optimized form.[src] ==Pattern matching== Algebraic data types are used to represent values that can be one of several types of things.[1] Each type of thing is associated with an identifier called a constructor, which can be considered a tag for that kind of data.[6] Each constructor can carry with it a different type of data.[6] For example, considering the binary Tree example shown above, a constructor could carry no data (e.g., Empty ), or one piece of data (e.g., Leaf has one Int value), or multiple pieces of data (e.g., Node has one Int value and two Tree values).[src] To do something with a value of this Tree algebraic data type, it is deconstructed using a process called pattern matching.[6] This involves matching the data with a series of patterns.[src] The example function depth above pattern-matches its argument with three patterns.[src] When the function is called, it finds the first pattern that matches its argument, performs any variable bindings that are found in the pattern, and evaluates the expression corresponding to the pattern.[src] Each pattern above has a form that resembles the structure of some possible value of this datatype.[src] The first pattern simply matches values of the constructor Empty .[src] The second pattern matches values of the constructor Leaf .[src] Patterns are recursive, so then the data that is associated with that constructor is matched with the pattern "n".[src] In this case, a lowercase identifier represents a pattern that matches any value, which then is bound to a variable of that name — in this case, a variable " n " is bound to the integer value stored in the data type — to be used in the expression to evaluate.[6] The recursion in patterns in this example are trivial, but a possible more complex recursive pattern would be something like: Node i (Node j (Leaf 4) x) (Node k y (Node Empty z)) Recursive patterns several layers deep are used for example in balancing red–black trees, which involve cases that require looking at colors several layers deep.[src] The example above is operationally equivalent to the following pseudocode: switch on (data.constructor) case Empty: return 0 case Leaf: let n = data.field1 return 1 case Node: let l = data.field2 let r = data.field3 return 1 + max (depth l) (depth r) The advantages of algebraic data types can be highlighted by comparison of the above pseudocode with a pattern matching equivalent.[1] Firstly, there is type safety.[src] In the pseudocode example above, programmer diligence is required to not access when the constructor is a Leaf .[src] The type system would have difficulties assigning a static type in a safe way for traditional record data structures.[6] However, in pattern matching such problems are not faced.[5] The type of each extracted value is based on the types declared by the relevant constructor.[6] The number of values that can be extracted is known based on the constructor.[src] Secondly, in pattern matching, the compiler performs exhaustiveness checking to ensure all cases are handled.[5] If one of the cases of the depth function above were missing, the compiler would issue a warning.[src] Exhaustiveness checking may seem easy for simple patterns, but with many complex recursive patterns, the task soon becomes difficult for the average human (or compiler, if it must check arbitrary nested if-else constructs).[src] Similarly, there may be patterns which never match (i.e., are already covered by prior patterns).[src] The compiler can also check and issue warnings for these, as they may indicate an error in reasoning.[src] Algebraic data type pattern matching should not be confused with regular expression string pattern matching.[6] The purpose of both is similar (to extract parts from a piece of data matching certain constraints) however, the implementation is very different.[src] Pattern matching on algebraic data types matches on the structural properties of an object rather than on the character sequence of strings.[1] ==Theory== A general algebraic data type is a possibly recursive sum type of product types.[1] Each constructor tags a product type to separate it from others, or if there is only one constructor, the data type is a product type.[6] Further, the parameter types of a constructor are the factors of the product type.[src] A parameterless constructor corresponds to the empty product.[src] If a datatype is recursive, the entire sum of products is wrapped in a recursive type, and each constructor also rolls the datatype into the recursive type.[src] For example, the Haskell datatype: data List a = Nil | Cons a (List a) is represented in type theory as \lambda \alpha.[1] \mu \beta.[src] 1 + \alpha \times \beta with constructors \mathrm{nil}_\alpha = \mathrm{roll}\ (\mathrm{inl}\ \langle\rangle) and \mathrm{cons}_\alpha\ x\ l = \mathrm{roll}\ (\mathrm{inr}\ \langle x, l\rangle) .[src] The Haskell List datatype can also be represented in type theory in a slightly different form, thus: \mu \phi.[src] \lambda \alpha.[src] 1 + \alpha \times \phi\ \alpha .[src] (Note how the \mu and \lambda constructs are reversed relative to the original.) The original formation specified a type function whose body was a recursive type.[src] The revised version specifies a recursive function on types.[src] (The type variable \phi is used to suggest a function rather than a base type like \beta , since \phi is like a Greek f.) The function must also now be applied \phi to its argument type \alpha in the body of the type.[src] For the purposes of the List example, these two formulations are not significantly different; but the second form allows expressing so-called nested data types, i.e., those where the recursive type differs parametrically from the original.[1] (For more information on nested data types, see the works of Richard Bird, Lambert Meertens, and Ross Paterson.) In set theory the equivalent of a sum type is a disjoint union, a set whose elements are pairs consisting of a tag (equivalent to a constructor) and an object of a type corresponding to the tag (equivalent to the constructor arguments).[1] ==Programming languages with algebraic data types== Many programming languages incorporate algebraic data types as a first class notion, including: ==See also== Disjoint union Generalized algebraic data type Initial algebra Quotient type Tagged union Type theory Visitor pattern ==References==[1]

101 sentences · 101 cited inline · 25 references stored

References

  1. A history of Haskell: being lazy with class · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "A history of Haskell: being lazy with class." Hudak, Paul ; Hughes, John ; Peyton Jones, Simon ; Wadler, Philip (9 June 2007). 2026-11-20. https://en.wikipedia.org/wiki/Paul_Hudak. Accessed 25 November 2026.

    Chicago "A history of Haskell: being lazy with class." Hudak, Paul ; Hughes, John ; Peyton Jones, Simon ; Wadler, Philip (9 June 2007). 2026-11-20. https://en.wikipedia.org/wiki/Paul_Hudak.

    APA Hudak, Paul ; Hughes, John ; Peyton Jones, Simon ; Wadler, Philip (9 June 2007). (2026). A history of Haskell: being lazy with class. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Paul_Hudak

  2. Variants · retrieved 2021-11-29 · rev 1353436870
    Cite this reference

    MLA "Variants." 2021-11-29. https://reasonml.github.io/docs/en/variant. Accessed 25 November 2026.

    Chicago "Variants." 2021-11-29. https://reasonml.github.io/docs/en/variant.

    APA encyclopegia.org. (2021). Variants. Retrieved November 25, 2026, from https://reasonml.github.io/docs/en/variant

  3. Variant | ReScript Language Manual · retrieved 2025-12-20 · rev 1353436870
    Cite this reference

    MLA "Variant | ReScript Language Manual." 2025-12-20. https://rescript-lang.org/docs/manual/variant. Accessed 25 November 2026.

    Chicago "Variant | ReScript Language Manual." 2025-12-20. https://rescript-lang.org/docs/manual/variant.

    APA encyclopegia.org. (2025). Variant | ReScript Language Manual. Retrieved November 25, 2026, from https://rescript-lang.org/docs/manual/variant

  4. Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine and Logic Archived 2020-06-10 at the Wayback Machine . Wikipedia revision 1353436870, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine and Logic Archived 2020-06-10 at the Wayback Machine . Wikipedia revision 1353436870, retrieved 2026-11-21." Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine. 2026-11-20. https://coq.inria.fr/distrib/current/refman/language/cic.html. Accessed 25 November 2026.

    Chicago "Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine and Logic Archived 2020-06-10 at the Wayback Machine . Wikipedia revision 1353436870, retrieved 2026-11-21." Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine. 2026-11-20. https://coq.inria.fr/distrib/current/refman/language/cic.html.

    APA Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine. (2026). Calculus of Inductive Constructions , and basic standard libraries: Datatypes Archived 2020-06-10 at the Wayback Machine and Logic Archived 2020-06-10 at the Wayback Machine . Wikipedia revision 1353436870, retrieved 2026-11-21. Retrieved November 25, 2026, from https://coq.inria.fr/distrib/current/refman/language/cic.html

  5. Enums and Pattern Matching - The Rust Programming Language · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Enums and Pattern Matching - The Rust Programming Language." 2026-11-20. https://doc.rust-lang.org/book/ch06-00-enums.html. Accessed 25 November 2026.

    Chicago "Enums and Pattern Matching - The Rust Programming Language." 2026-11-20. https://doc.rust-lang.org/book/ch06-00-enums.html.

    APA encyclopegia.org. (2026). Enums and Pattern Matching - The Rust Programming Language. Retrieved November 25, 2026, from https://doc.rust-lang.org/book/ch06-00-enums.html

  6. relicensing · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "relicensing." This article is based on material taken from Algebraic+data+type at the Free On-line Dictionary of Computing prior to 1. 2026-11-20. https://foldoc.org/Algebraic+data+type. Accessed 25 November 2026.

    Chicago "relicensing." This article is based on material taken from Algebraic+data+type at the Free On-line Dictionary of Computing prior to 1. 2026-11-20. https://foldoc.org/Algebraic+data+type.

    APA This article is based on material taken from Algebraic+data+type at the Free On-line Dictionary of Computing prior to 1. (2026). relicensing. Retrieved November 25, 2026, from https://foldoc.org/Algebraic+data+type

  7. CppCon 2016: Ben Deane · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "CppCon 2016: Ben Deane." "CppCon 2016: Ben Deane "Using Types Effectively" ". 2026-11-20. https://www.youtube.com/watch?v=ojZbFIQSdl8. Accessed 25 November 2026.

    Chicago "CppCon 2016: Ben Deane." "CppCon 2016: Ben Deane "Using Types Effectively" ". 2026-11-20. https://www.youtube.com/watch?v=ojZbFIQSdl8.

    APA "CppCon 2016: Ben Deane "Using Types Effectively" ". (2026). CppCon 2016: Ben Deane. Retrieved November 25, 2026, from https://www.youtube.com/watch?v=ojZbFIQSdl8

  8. Sealed class modifier · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Sealed class modifier." 2026-11-20. https://dart.dev/language/class-modifiers#sealed. Accessed 25 November 2026.

    Chicago "Sealed class modifier." 2026-11-20. https://dart.dev/language/class-modifiers#sealed.

    APA encyclopegia.org. (2026). Sealed class modifier. Retrieved November 25, 2026, from https://dart.dev/language/class-modifiers#sealed

  9. Algebraic Data Types in Haskell · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Algebraic Data Types in Haskell." 2026-11-20. https://serokell.io/blog/algebraic-data-types-in-haskell. Accessed 25 November 2026.

    Chicago "Algebraic Data Types in Haskell." 2026-11-20. https://serokell.io/blog/algebraic-data-types-in-haskell.

    APA encyclopegia.org. (2026). Algebraic Data Types in Haskell. Retrieved November 25, 2026, from https://serokell.io/blog/algebraic-data-types-in-haskell

  10. Enum Instance · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Enum Instance." 2026-11-20. https://haxe.org/manual/types-enum-instance.html. Accessed 25 November 2026.

    Chicago "Enum Instance." 2026-11-20. https://haxe.org/manual/types-enum-instance.html.

    APA encyclopegia.org. (2026). Enum Instance. Retrieved November 25, 2026, from https://haxe.org/manual/types-enum-instance.html

  11. JEP 395: Records · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "JEP 395: Records." 2026-11-20. https://openjdk.org/jeps/395. Accessed 25 November 2026.

    Chicago "JEP 395: Records." 2026-11-20. https://openjdk.org/jeps/395.

    APA encyclopegia.org. (2026). JEP 395: Records. Retrieved November 25, 2026, from https://openjdk.org/jeps/395

  12. JEP 409: Sealed Classes · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "JEP 409: Sealed Classes." 2026-11-20. https://openjdk.org/jeps/409. Accessed 25 November 2026.

    Chicago "JEP 409: Sealed Classes." 2026-11-20. https://openjdk.org/jeps/409.

    APA encyclopegia.org. (2026). JEP 409: Sealed Classes. Retrieved November 25, 2026, from https://openjdk.org/jeps/409

  13. Sealed Classes · retrieved 2026-11-20 · rev 1353436870
    Cite this reference

    MLA "Sealed Classes." 2026-11-20. https://kotlinlang.org/docs/reference/sealed-classes.html. Accessed 25 November 2026.

    Chicago "Sealed Classes." 2026-11-20. https://kotlinlang.org/docs/reference/sealed-classes.html.

    APA encyclopegia.org. (2026). Sealed Classes. Retrieved November 25, 2026, from https://kotlinlang.org/docs/reference/sealed-classes.html

  14. Hudak, Paul. dl.acm.org . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Hudak, Paul. dl.acm.org ." Hudak, Paul. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Hudak, Paul. dl.acm.org ." Hudak, Paul. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Hudak, Paul. (2026). Hudak, Paul. dl.acm.org . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  15. Variant ! . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Variant ! ." 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Variant ! ." 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA encyclopegia.org. (2026). Variant ! . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  16. [https://coq.inria.fr/distrib/current/refman/language/cic.html Calculus of Inductive Constructions], and basic standard libraries: [https://coq.inria.fr/distrib/current/stdlib/Coq.Init.Datatypes.html . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "[https://coq.inria.fr/distrib/current/refman/language/cic.html Calculus of Inductive Constructions], and basic standard libraries: [https://coq.inria.fr/distrib/current/stdlib/Coq.Init.Datatypes.html ." https://coq. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "[https://coq.inria.fr/distrib/current/refman/language/cic.html Calculus of Inductive Constructions], and basic standard libraries: [https://coq.inria.fr/distrib/current/stdlib/Coq.Init.Datatypes.html ." https://coq. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA https://coq. (2026). [https://coq.inria.fr/distrib/current/refman/language/cic.html Calculus of Inductive Constructions], and basic standard libraries: [https://coq.inria.fr/distrib/current/stdlib/Coq.Init.Datatypes.html . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  17. Enums and Pattern Matching - The Rust Programming Language . doc.rust-lang.org . retrieved 31 August 2021 · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Enums and Pattern Matching - The Rust Programming Language . doc.rust-lang.org . retrieved 31 August 2021." Enums and Pattern Matching - The Rust Programming Language. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Enums and Pattern Matching - The Rust Programming Language . doc.rust-lang.org . retrieved 31 August 2021." Enums and Pattern Matching - The Rust Programming Language. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Enums and Pattern Matching - The Rust Programming Language. (2026). Enums and Pattern Matching - The Rust Programming Language . doc.rust-lang.org . retrieved 31 August 2021. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  18. CppCon 2016: Ben . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "CppCon 2016: Ben ." 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "CppCon 2016: Ben ." 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA encyclopegia.org. (2026). CppCon 2016: Ben . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  19. Sealed class modifier . Dart . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Sealed class modifier . Dart ." Sealed class modifier. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Sealed class modifier . Dart ." Sealed class modifier. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Sealed class modifier. (2026). Sealed class modifier . Dart . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  20. Algebraic Data Types in Haskell . Serokell . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Algebraic Data Types in Haskell . Serokell ." Algebraic Data Types in Haskell. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Algebraic Data Types in Haskell . Serokell ." Algebraic Data Types in Haskell. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Algebraic Data Types in Haskell. (2026). Algebraic Data Types in Haskell . Serokell . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  21. Enum Instance . Haxe - The Cross-platform Toolkit . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Enum Instance . Haxe - The Cross-platform Toolkit ." Enum Instance. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Enum Instance . Haxe - The Cross-platform Toolkit ." Enum Instance. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Enum Instance. (2026). Enum Instance . Haxe - The Cross-platform Toolkit . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  22. JEP 395: Records . OpenJDK . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "JEP 395: Records . OpenJDK ." JEP 395: Records. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "JEP 395: Records . OpenJDK ." JEP 395: Records. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA JEP 395: Records. (2026). JEP 395: Records . OpenJDK . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  23. JEP 409: Sealed Classes . OpenJDK . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "JEP 409: Sealed Classes . OpenJDK ." JEP 409: Sealed Classes. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "JEP 409: Sealed Classes . OpenJDK ." JEP 409: Sealed Classes. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA JEP 409: Sealed Classes. (2026). JEP 409: Sealed Classes . OpenJDK . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  24. Sealed Classes . Kotlin Language . · retrieved 2026-05-09 · rev 1353436870
    Cite this reference

    MLA "Sealed Classes . Kotlin Language ." Sealed Classes. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Sealed Classes . Kotlin Language ." Sealed Classes. 2026-05-09. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Sealed Classes. (2026). Sealed Classes . Kotlin Language . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

  25. Variants . Reason Programming Language . retrieved 2021-11-30 · retrieved 2021-11-29 · rev 1353436870
    Cite this reference

    MLA "Variants . Reason Programming Language . retrieved 2021-11-30." Variants. 2021-11-29. https://en.wikipedia.org/w/index.php?oldid=1353436870. Accessed 25 November 2026.

    Chicago "Variants . Reason Programming Language . retrieved 2021-11-30." Variants. 2021-11-29. https://en.wikipedia.org/w/index.php?oldid=1353436870.

    APA Variants. (2021). Variants . Reason Programming Language . retrieved 2021-11-30. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1353436870

Cite this article

MLA

"Algebraic data type." encyclopegia.org, 2026, https://encyclopegia.org/wiki/algebraic-data-type. Accessed 25 November 2026.

Chicago

"Algebraic data type." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/algebraic-data-type.

APA

encyclopegia.org. (2026). Algebraic data type. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/algebraic-data-type

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

blood type

stub · references available

algebraic equation

stub · references available

Type 69 tank

stub · references available

solar-type star

stub · references available

Adobe Type

stub · references available

Audi Type B

stub · references available

Audi Type G

stub · references available

digital data

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1353436870 · 0.5 · snapshot enwiki-001353436870

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.