Metaclass for Falcon range type.
class Range \ from BOM
| times() | repeats a sequence a given number of times. |
| add__ from BOM | Overrides binary addition operand. |
| baseClass from BOM | Returns the class item from which an object has been instantiated. |
| call__ from BOM | Overrides call operator "self()". |
| className from BOM | Returns the name of the class an instance is instantiated from. |
| clone from BOM | Performs a deep copy of the item. |
| compare from BOM | Performs a lexicographical comparison. |
| dec__ from BOM | Overrides decrement unary prefix operand. |
| decpost__ from BOM | Overrides decrement unary postfix operand. |
| derivedFrom from BOM | Checks if this item has a given parent. |
| describe from BOM | Returns the deep contents of an item on a string representation. |
| div__ from BOM | Overrides binary division operand. |
| getIndex__ from BOM | Overrides array access operator [] |
| inc__ from BOM | Overrides increment unary prefix operand. |
| incpost__ from BOM | Overrides increment unary postifx operand. |
| isCallable from BOM | Determines if an item is callable. |
| len from BOM | Retreives the lenght of a collection |
| metaclass from BOM | Returns the metaclass associated with this item. |
| mod__ from BOM | Overrides modulo operand. |
| mul__ from BOM | Overrides binary multiplication operand. |
| pow__ from BOM | Overrides power operand. |
| ptr from BOM | Returns a raw memory pointer out of this data (as an integer). |
| serialize from BOM | Serialize the item on a stream for persistent storage. |
| setIndex__ from BOM | Overrides array write operator [] |
| sub__ from BOM | Overrides binary subtraction operand. |
| toString from BOM | Coverts the object to string. |
| typeId from BOM | Returns an integer indicating the type of this item. |
Metaclass for Falcon range type.
This class holds the methods that can be applied to Falcon range items. Ranges are created through the [:] operator, like this:
r1 = [1:10] // 1 to 10 r2 = [-1:0] // reverse sequence r3 = [0:10:2] // stepping range > "Hello world"[r2] // reverses the string
repeats a sequence a given number of times.
Range.times( sequence )
| sequence | Function or sequence to be repeated. |
| Returns: | Last index processed. |
This method works exactly as the times function when the first parameter is a range.