Category:Arturo: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 33:
 
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>
1,532

edits