Test Page
Christopher Ross-Gill edited this page Aug 1, 2016
·
1 revision
A few tests...
>> wiki-function-list [now parse load]
Returns:
Returns the current local date and time. NOW is a native value.
- /year -- Returns the year only.
- /month -- Returns the month only.
- /day -- Returns the day of the month only.
- /time -- Returns the time only.
- /zone -- Returns the time zone offset from GMT only.
- /date -- Returns date only.
- /weekday -- Returns day of the week as integer (Monday is day 1).
- /yearday -- Returns day of the year (Julian)
- /precise -- Use nanosecond precision
Parses a series according to rules. PARSE is a native value.
- input -- Input series to parse (Type: series)
- rules -- Rules to parse by (Type: block string none)
- /all -- Parses all chars including spaces.
- /case -- Uses case-sensitive comparison.
Loads a file, URL, or string. Binds words to global context. LOAD is a native value.
- source -- (Type: file url string any-block binary)
- /header -- Includes Rebol header object if present.
- /next -- Load the next value only. Return block with value and new position.
- /library -- Force file to be a dynamic library. (Command version)
- /markup -- Convert HTML and XML to a block of tags and strings.
- /all -- Load all values. Does not evaluate Rebol header.
>> wiki-table/header [[Luke Skywalker][Darth Vader][Han Solo]] ["First Name" "Last Name"]
Returns:
First | Name | Last | Name |
---|---|---|---|
Luke | Skywalker | ||
Darth | Vader | ||
Han | Solo |
>> wiki-link-table [[word1 word2 word3 word4 word5][word6 word7 word8 word9 word10]]
Returns:
word1 | word2 | word3 | word4 | word5 |
word6 | word7 | word8 | word9 | word10 |
>> wiki-dump-obj make object! [a: 5 b: 8 c: "stuff"]
Returns:
Word | Description |
---|---|
a | 5 |
b | 8 |
c | "stuff" |