Curry (programming language): Difference between revisions

Content deleted Content added
m English clean-ups.
Line 44:
double '(1+2)' → 'double 3' → '3+3' → 6
 
In this case, we obtain the same result with lessfewer evaluation steps. ...
 
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: