![]() |
|
Navigation |
Synopsis A definition of a data type.
Description An Abstract Data Type
![]() empty (the empty stack),
two functions push and pop and axioms that define them. At the implementation level, a stack
can be implemented using a list, array or something else.
In functional languages, and also in Rascal, abstract datatypes (or ADTs for short) are used to define new data types. Well-known examples are stack ![]() ![]() See Rascal:AlgebraicDataType and Rascal:Values/Constructor.
Examples
Abstract Data Types in daily life
![]() ![]() ![]() ![]() ![]() ![]() Abstract Data Types in computer science
Abstract Data Types in Rascal
![]() |