mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update red.html.markdown
completed function twice example
This commit is contained in:
parent
026dcf7b2f
commit
c285bf7583
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user