Anonymous user
Compound data type: Difference between revisions
→{{header|Ela}}
(→{{header|Erlang}}: added implementation) |
|||
Line 355:
=={{header|Ela}}==
Ela supports algebraic types:
<lang ela>
Except of regular algebraic types, Ela also provides a support for open algebraic types - which can be extended any time with new constructors:
<lang ela>
//Add new constructor to an existing type
data Several = Four</lang>
=={{header|Erlang}}==
|