User Tools

Site Tools


rebol_functions:list_by_type

List by Type

Evaluate

Evaluates a block, file, URL, function, word, or any other value.
Evaluates expressions and returns multiple results.
Evaluates a block of expressions, only evaluating parens, and returns a block.
Appends a reduced value to a series and returns the series head.
Reduces and joins a block of values.

Branch

If TRUE condition, return arg; evaluate blocks by default.
If TRUE condition return first arg, else second; evaluate blocks by default.
Shortcut AND. Evaluates and returns at the first FALSE or NONE.
Shortcut OR. Evaluates and returns the first value that is not FALSE or NONE.
Evaluates each condition, and when true, evaluates what follows it.
Selects a choice and evaluates the block that follows it.
If FALSE condition, return arg; evaluate blocks by default.

Loop

Evaluates a block a specified number of times.
Evaluates a block a number of times or over a series.
Evaluates a block for each value(s) in a series.
While a condition block is TRUE, evaluates another block.
Removes values for each block that returns true; returns removal count.
Breaks out of a loop, while, until, repeat, foreach, etc.
Throws control back to top of loop.
Catches a throw from a block and returns its value.
Exits a function, returning no value.
Returns a value from a function.
Evaluate a block over a range of values. (See also: REPEAT)
Evaluates a block for every value in a series.
Evaluates a block endlessly.
Evaluates a block for periodic values in a series.
Evaluates a block until it is TRUE. 

Function

Defines a function with all set-words as locals.
Defines a function with all set-words as locals.
Defines a user function with given spec and body.
A shortcut to define a function that has local variables but no arguments.
A shortcut to define a function that has no arguments or locals.
Exits a function, returning no value.
Returns a value from a function.
Defines a closure function with all set-words as locals.
Non-copying function constructor (optimized for boot).
Defines words local to a block.
Constructs or allocates the specified datatype.
Returns TRUE if it is this type.
Breaks out of a loop, while, until, repeat, foreach, etc.
Catches a throw from a block and returns its value.

Error

Tries to evaluate a block and returns result or NONE on error.
Tries to DO a block and returns its value or an error.
Catches a throw from a block and returns its value.
Throws control back to a previous catch.
Returns TRUE if it is this type.

Help/Debug

Prints information about words and values.
Prints a list of known functions.
Prints information about words and values.
Debug print a word, path, or block of such, followed by its molded value.
Prints the source code for a word.
Enables and disables evaluation tracing and backtrace.
Debug print a molded value and returns that same value.
Delta-time - returns the time it takes to evaluate the block.
Delta-profile of running a specific block.
Delta-time - returns the time it takes to evaluate the block.
Delta-profile of running a specific block.
Copies console output to a file.
Returns stack backtrace or other values.
Explain the last error in more detail.

Compare

Returns TRUE if the first value is less than the second value.
Returns TRUE if the first value is greater than the second value.
Returns TRUE if the first value is less than or equal to the second value.
Returns TRUE if the first value is greater than or equal to the second value.
Returns TRUE if the values are equal.
Returns TRUE if the values are strictly equal.
Returns TRUE if the values are not equal.
Returns TRUE if the values are not equal.
Returns TRUE if the values are not strictly equal.
Returns TRUE if the values are identical.
Returns TRUE if the values are identical.
Returns TRUE if the first value is less than the second value.
Returns TRUE if the first value is greater than the second value.
Returns TRUE if the first value is less than or equal to the second value.
Returns TRUE if the first value is greater than or equal to the second value.
Returns TRUE if the values are strictly equal.
Returns TRUE if the values are not equal.
Returns TRUE if the values are equal.

Math

Returns the addition of two values.
Returns the second value subtracted from the first.
Returns the first value multiplied by the second.
Returns the first value divided by the second.
Returns the first number raised to the second number.
Returns the remainder of first value divided by second.
Changes the sign of a number.
Returns the absolute value.
Returns the absolute value.
Rounds a numeric value; halves round up (away from zero) by default.
Returns the lesser of the two values.
Returns the greater of the two values.
Returns the first value ANDed with the second.
Returns the first value ORed with the second.
Returns the first value exclusive ORed with the second.
Returns the logic complement.
Returns a random value of the same datatype; or shuffles series.
Shifts an integer left or right by a number of bits.
Returns the trigonometric sine.
Returns the natural (base-E) logarithm of the given value
Converts to a specified datatype.
Returns the addition of two values.
Returns the second value subtracted from the first.
Returns the first value divided by the second.
Returns the first value multiplied by the second.
Returns the first number raised to the second number.
Raises E (the base of natural logarithm) to the power specified
Returns the base-10 logarithm.
Return the base-2 logarithm.
Returns the remainder of first value divided by second.
Compute a nonnegative remainder of A divided by B.
Wrapper for MOD that handles errors like REMAINDER. Negligible values (compared to A and B) are rounded to zero.
Returns TRUE if the value is positive.
Returns TRUE if the number is negative.
Returns the one's complement value.
Returns sign of number as 1, 0, or -1 (to use as multiplier).
Finds the smallest value in a series
Finds the largest value in a series
Returns the greater of the two values.
Returns the lesser of the two values.
Returns the first value ANDed with the second.
Returns the first value ORed with the second.
Shortcut AND. Evaluates and returns at the first FALSE or NONE.
Returns TRUE if it is this type.
Returns TRUE if it is this type.
Returns the first value ORed with the second.
Returns the first value ANDed with the second.
Returns the first value exclusive ORed with the second.
Returns the trigonometric arccosine (in degrees by default).
Returns the trigonometric arcsine (in degrees by default).
Returns the trigonometric arctangent (in degrees by default).
Returns the trigonometric cosine.
Returns the trigonometric tangent.
Constructs or allocates the specified datatype.
Computes a checksum, CRC, or hash.
Constructs or allocates the specified datatype.

Reflection

Returns a copy of the words of a function, object, or module
Returns a copy of the values of a object or module
Returns a copy of the title of a function
Returns a copy of the spec of a function or module
Returns a copy of the body of a function, object, or module
Returns a copy of the types of a function
Returns specific details about a datatype.

Series Get

Searches for a value; for series returns where found, else none.
Searches for a value; returns the value that follows, else none.
Returns the first value of a series.
Returns the second value of a series.
Returns the third value of a series.
Returns the fourth value of a series.
Returns the fifth value of a series.
Returns the sixth value of a series.
Returns the seventh value of a series.
Returns the eighth value of a series.
Returns the ninth value of a series.
Returns the last value of a series.
Returns TRUE if the series length is 1.
Returns the value at the specified position.
Returns the length (from the current position for series.)
Returns the current position (index) of the series.
Returns the series at its next position.
Returns the series at its previous position.
Returns the series forward or backward from the current position.
Find all occurrences of a value within a series (allows modification).
Selects a choice and evaluates the block that follows it.
Returns the offset between two series positions.
Returns the series at its beginning.
Returns the series just past its end.
Returns TRUE if a series is at its beginning.
Returns TRUE if series is at or past its end; or empty for other types.
Returns the series at the specified index.
Returns the current position (index) of the series.

Series Make

Constructs or allocates the specified datatype.
Copies a series, object, or other value.
Concatenates values.
Reduces and joins a block of values into a new string.
Reduces and joins a block of values.
Returns the datatype of a value.
Converts a value to a human-readable string.
Forms a reduced block and returns a string.
Converts a value to a REBOL-readable string.
Reduces and converts a value to a REBOL-readable string.
Evaluates expressions and returns multiple results.
Extracts a value from a series at regular intervals.

Series Modify

Inserts element(s) at tail; for series, returns head.
Appends a reduced value to a series and returns the series head.
Inserts element(s); for series, returns just past the insert.
Removes element(s); returns same position.
Removes and returns one or more elements.
Removes elements from current position to tail; returns at new tail.
Replaces element(s); returns just past the change.
Replaces a search value with the replace value within the target series.
Removes spaces from strings or nones from blocks or objects.
Split a series into pieces; fixed or variable size, fixed number, or at delimiters
Sorts a series; default sort order is ascending.
Swaps elements between two series or the same series.

Set

Returns the data set with duplicates removed.
Returns the union of two data sets.
Returns the intersection of two data sets.
Returns the special difference of two values.
Returns the first data set less the second data set.

Console

Outputs a value followed by a line break.
Debug print a molded value and returns that same value.
Inputs a string from the console. New-line character is removed.
Ask the user for input.
Stops evaluation and returns to the input prompt.
Stops evaluation and exits the interpreter.
Outputs a value with no line break.
Copies console output to a file.
Confirms a user choice.
Stops evaluation and exits the interpreter.

Output

Converts a value to a REBOL-readable string.
Reduces and converts a value to a REBOL-readable string.
Converts a value to a human-readable string.
Forms a reduced block and returns a string.
Converts to a specified datatype.
Converts to string! value.
Constructs or allocates the specified datatype.

Files/Ports

Read from a file, URL, or other port.
Writes to a file, URL, or port - auto-converts text strings.
Loads code or data from a file, URL, string, or binary.
Saves a value, block, or other data to a file, URL, binary, or string.
Opens a port; makes a new port from a specification if necessary.
Closes a port/library.
Send port a delete request.
Returns the type of a file or URL if it exists, otherwise none.
Returns the size of a file.
Returns the last modified date of a file.
Return the file suffix of a filename or url. Else, NONE.
Returns TRUE if the file or url ends with a slash (or backslash).
Splits and returns directory path and file as a block.
Returns a copy (always) of the path as a directory (ending slash).
Converts a REBOL file path to the local system file path.
Evaluates a block, file, URL, function, word, or any other value.
Imports a module; locate, load, make, and setup its bindings.
Binds words to the specified context.
Converts a value to a REBOL-readable string.
Removes element(s); returns same position.
Returns information about a port, file, or URL.
Send port a create request.
Send port a delete request.
Splits and returns directory path and file as a block.
Creates the specified directory. No error if already exists.
Creates the specified directory. No error if already exists.
Changes the current directory path.
Print contents of a directory (ls).
Returns new directory path with //, . and .. processed.
Converts to a specified datatype.
Converts a local system file path to a REBOL file path.
Converts a REBOL file path to the local system file path.
Print contents of a directory (ls).
Change directory (shell shortcut function).

Context

Defines a unique object.
Creates a new module.
Imports a module; locate, load, make, and setup its bindings.
Creates an object with scant (safe) evaluation.
Binds words to the specified context.
Gets the value of a word or path, or values of an object.
Sets a word, path, block of words, or object to specified value(s).
Returns the word or block in the object's context.
Returns TRUE if the word has a value.
Defines words local to a block.
Returns the context in which a word is bound.
Constructs or allocates the specified datatype.
Defines a unique object.
Unsets the value of a word (in its current context.)
Protect a series or a variable from being modified.
Unprotect a series or a variable (it can again be modified).
Set a word to a default value if it hasn't been set yet.

Other

Returns date and time.
Removes spaces from strings or nones from blocks or objects.
Converts to url! value.
Encodes a string into a binary-coded string (BASE-64 default).
Decodes binary-coded string (BASE-64 default) to binary value.
Parses a string or block series according to grammar rules.
none
Waits for a duration, port, or both.
Open web browser to a URL or local file.
Compresses a string series and returns it.
Decompresses data. Result is binary.
Converts string of characters to lowercase.
Converts string of characters to uppercase.
Converts spaces to tabs (default tab size is 4).
Converts tabs to spaces (default tab size is 4).

GUI/Graphics

Displays a window view.
Closes a window view.
Asks user to select a file and returns full file path (or block of paths).
Renders draw dialect (scalable vector graphics) to an image (returned).
Display or update a graphical object or block of them.
rebol_functions/list_by_type.txt · Last modified: 2015/10/14 15:30 (external edit)