Content deleted Content added
Mofoburrell (talk | contribs) m English clean-ups. |
|||
Line 44:
double '(1+2)' → 'double 3' → '3+3' → 6
In this case, we obtain the same result with
As functional languages like [[haskell (programming language)|Haskell]] do, Curry supports the definition of algebraic data types by enumerating their constructors. For instance, the type of Boolean values consists of the constructors <tt>True</tt> and <tt>False</tt> that are declared as follows:
|