Update red.html.markdown

completed function twice example
This commit is contained in:
iArnold 2014-01-30 10:33:19 +01:00
parent 026dcf7b2f
commit c285bf7583

View File

@ -185,17 +185,18 @@ twice: function [a [integer!] /one return: [integer!]][
a: a * c a: a * c
either one [a + 1][a] either one [a + 1][a]
] ]
b: 3
print twice b ; will output 6.
; Import external files with #include and filenames start with a % sign ; Import external files with #include and filenames start with a % sign
#include %includefile.red #include %includefile.red
; Now the functions in the included file can be used too.
``` ```
## Further Reading ## 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). The Red/System language specification can be found [here](http://static.red-lang.org/red-system-specs-light.html).