Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
fun [2019/12/09 21:25] – [Functions with no parameters] neilsfun [2019/12/09 21:28] – [Calling functions] neils
Line 58: Line 58:
 You can call a function from within an expression by using the function name, sigil and the argument list in parentheses, for example: You can call a function from within an expression by using the function name, sigil and the argument list in parentheses, for example:
  
-  let x! = my_function!(a, b!)+  let x! = my_function!(a, b!) * 2
      
 Note that in the example above ''my_function!'' is a function that returns a byte and accepts an integer and a byte as arguments. Note that in the example above ''my_function!'' is a function that returns a byte and accepts an integer and a byte as arguments.