working on docs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
# ------------------------------------------------------------------------- #
|
||||
# --- Functions ----------------------------------------------------------- #
|
||||
#
|
||||
|
||||
# Functions can be defined using the following syntax:
|
||||
|
||||
fun say_hello_to(name)
|
||||
@@ -54,10 +54,10 @@ test_func = 5;
|
||||
|
||||
# test_func();
|
||||
|
||||
#
|
||||
|
||||
# ------------------------------------------------------------------------- #
|
||||
# --- Returns ------------------------------------------------------------- #
|
||||
#
|
||||
|
||||
# Functions can return values exactly like in other languages:
|
||||
|
||||
fun multiply(x, y)
|
||||
@@ -69,7 +69,6 @@ r = multiply(p, q);
|
||||
|
||||
print(p, ' * ', q, ' = ', r, '\n');
|
||||
|
||||
#
|
||||
# ------------------------------------------------------------------------- #
|
||||
# --- Scopes -------------------------------------------------------------- #
|
||||
#
|
||||
@@ -111,6 +110,5 @@ print = get_print_back();
|
||||
|
||||
print('Hei! Print is back!\n');
|
||||
|
||||
#
|
||||
# ------------------------------------------------------------------------- #
|
||||
# ------------------------------------------------------------------------- #
|
||||
|
||||
Reference in New Issue
Block a user