summaryrefslogtreecommitdiffhomepage
path: root/red.html.markdown
diff options
context:
space:
mode:
authoriArnold <arnoldvanh@gmail.com>2014-01-30 10:33:19 +0100
committeriArnold <arnoldvanh@gmail.com>2014-01-30 10:33:19 +0100
commitc285bf758365107af78ce9a99c7f0d1e1f52421f (patch)
tree5445999c3b8c802ab2efd03ab51bd17979cdc610 /red.html.markdown
parent026dcf7b2f9a5a3159d9d35c0da82b6180034e45 (diff)
Update red.html.markdown
completed function twice example
Diffstat (limited to 'red.html.markdown')
-rw-r--r--red.html.markdown7
1 files changed, 4 insertions, 3 deletions
diff --git a/red.html.markdown b/red.html.markdown
index 43fe03a6..55251e4e 100644
--- a/red.html.markdown
+++ b/red.html.markdown
@@ -185,17 +185,18 @@ twice: function [a [integer!] /one return: [integer!]][
a: a * c
either one [a + 1][a]
]
-
+b: 3
+print twice b ; will output 6.
; Import external files with #include and filenames start with a % sign
#include %includefile.red
-
+; Now the functions in the included file can be used too.
```
## Further Reading
-The main source for information about Red is [the Red language homepage](http://www.red-lang.org).
+The main source for information about Red is the [Red language homepage](http://www.red-lang.org).
The Red/System language specification can be found [here](http://static.red-lang.org/red-system-specs-light.html).