Flix (programming language): Difference between revisions

Content deleted Content added
Line 33:
</syntaxhighlight>
 
The type and effect signature of <code>main</code> specifies that it takes no arguments, returns the <code>Unit</code> value, and that the function is impure. The <code>main</code> function must be declared as impure becausesince it invokes the <code>printLine</code> function which is itself marked as impure.
 
=== Algebraic Data Types and Pattern Matching ===