Category:Arturo: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) No edit summary |
Drkameleon (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
There are 3 types of statements. |
There are 3 types of statements. |
||
* Simple statements, that work as a function call in the form of <code>ID <expressions></code> |
|||
* Expressions (Yes, <code>1+2</code> is also a valid statement) |
|||
* Labeled statements (see: assignments) like <code>a: 2</code> |
|||
Pro tip: Do you want to use the result of a statement as part of an expression? Just enclose the function call in square brackets <code>[...]</code> E.g.: <code>print [reverse #(1 2 3)]</code> |
Pro tip: Do you want to use the result of a statement as part of an expression? Just enclose the function call in square brackets <code>[...]</code> E.g.: <code>print [reverse #(1 2 3)]</code> |