Qore Programming Language Reference Manual
0.8.11.1
|
Functions | |
bool | Qore::inlist () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::inlist (any arg, nothing x) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::inlist (any arg, softlist l) |
Returns True if the first argument is a member of the second argument list using soft comparisons (with implicit type conversions), False if not. More... | |
bool | Qore::inlist_hard () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::inlist_hard (any arg, nothing x) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::inlist_hard (any arg, softlist l) |
Returns True if the first argument is a member of the second argument list using hard comparisons (without any implicit type conversions), False if not. More... | |
any | Qore::max (list l) |
Returns the maximum value in a list. More... | |
any | Qore::max (list l, string func) |
Returns the maximum value in a list; accepts the name of a function to use to compare complex data types or to give a special sort order. More... | |
any | Qore::max (list l, code f) |
Returns the maximum value in a list; accepts a call reference or a closure to use to compare complex data types or to give a special sort order. More... | |
any | Qore::max (...) |
Returns the maximum value of the arguments passed to the function. More... | |
any | Qore::min (list l) |
Returns the minumum value in a list. More... | |
any | Qore::min (list l, string func) |
Returns the minumum value in a list; accepts the name of a function to use to compare complex data types or to give a special sort order. More... | |
any | Qore::min (list l, code f) |
Returns the minumum value in a list; accepts a call reference or a closure to use to compare complex data types or to give a special sort order. More... | |
any | Qore::min (...) |
Returns the minumum value of the arguments passed to the function. More... | |
list | Qore::range (int start, int stop, int step=1) |
Returns a list containing an arithmetic progression of integers. More... | |
list | Qore::range (int stop) |
Returns a list containing an arithmetic progression of integers with start = 0 and step = 1. More... | |
nothing | Qore::reverse () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list | Qore::reverse (list l) |
Reverses a list and returns the new list. More... | |
any | Qore::sort (any arg) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list | Qore::sort (list l) |
Performs an unstable sort in ascending order and returns the new list. More... | |
list | Qore::sort (list l, string func) |
Performs an unstable sort in ascending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order. More... | |
list | Qore::sort (list l, code f) |
Performs an unstable sort in ascending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order. More... | |
any | Qore::sortDescending (any arg) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list | Qore::sortDescending (list l) |
Performs an unstable sort in descending order and returns the new list. More... | |
list | Qore::sortDescending (list l, string func) |
Performs an unstable sort in descending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order. More... | |
list | Qore::sortDescending (list l, code f) |
Performs an unstable sort in descending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order. More... | |
any | Qore::sortDescendingStable (any arg) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list | Qore::sortDescendingStable (list l) |
Performs a stable sort in descending order and returns the new list. More... | |
list | Qore::sortDescendingStable (list l, string func) |
Performs a stable sort in descending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order. More... | |
list | Qore::sortDescendingStable (list l, code f) |
Performs a stable sort in descending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order. More... | |
any | Qore::sortStable (any arg) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list | Qore::sortStable (list l) |
Performs a stable sort in ascending order and returns the new list. More... | |
list | Qore::sortStable (list l, string func) |
Performs a stable sort in ascending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order. More... | |
list | Qore::sortStable (list l, code f) |
Performs a stable sort in ascending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order. More... | |
List functions
bool Qore::inlist | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::inlist | ( | any | arg, |
nothing | x | ||
) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::inlist | ( | any | arg, |
softlist | l | ||
) |
Returns True if the first argument is a member of the second argument list using soft comparisons (with implicit type conversions), False if not.
arg | the argument to look for in the list |
l | the list to search for the first argument arg |
bool Qore::inlist_hard | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::inlist_hard | ( | any | arg, |
nothing | x | ||
) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::inlist_hard | ( | any | arg, |
softlist | l | ||
) |
Returns True if the first argument is a member of the second argument list using hard comparisons (without any implicit type conversions), False if not.
arg | the argument to look for in the list |
l | the list to search for the first argument arg |
any Qore::max | ( | list | l | ) |
any Qore::max | ( | list | l, |
string | func | ||
) |
Returns the maximum value in a list; accepts the name of a function to use to compare complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::max | ( | list | l, |
code | f | ||
) |
Returns the maximum value in a list; accepts a call reference or a closure to use to compare complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the call reference or a closure must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::max | ( | ... | ) |
Returns the maximum value of the arguments passed to the function.
This variant will only work on basic data types
... | the list of values to process given directly to the function |
any Qore::min | ( | list | l | ) |
any Qore::min | ( | list | l, |
string | func | ||
) |
Returns the minumum value in a list; accepts the name of a function to use to compare complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::min | ( | list | l, |
code | f | ||
) |
Returns the minumum value in a list; accepts a call reference or a closure to use to compare complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the call reference or a closure must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::min | ( | ... | ) |
Returns the minumum value of the arguments passed to the function.
This variant will only work on basic data types
... | the list of values to process given directly to the function |
list Qore::range | ( | int | start, |
int | stop, | ||
int | step = 1 |
||
) |
Returns a list containing an arithmetic progression of integers.
start | the initial value |
stop | the final value |
step | the step; the default is 1; must be greater than 0; the function throws a RANGE-ERROR exception when this argument is < 1 |
RANGE-ERROR | this exception is thrown if step < 1 |
list Qore::range | ( | int | stop | ) |
Returns a list containing an arithmetic progression of integers with start = 0 and step = 1.
This is an overloaded version of range(int, int, int) meaning range
(0, stop
, 1)
stop | the final value |
nothing Qore::reverse | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::reverse | ( | list | l | ) |
any Qore::sort | ( | any | arg | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::sort | ( | list | l | ) |
list Qore::sort | ( | list | l, |
string | func | ||
) |
Performs an unstable sort in ascending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
list Qore::sort | ( | list | l, |
code | f | ||
) |
Performs an unstable sort in ascending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the code must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::sortDescending | ( | any | arg | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::sortDescending | ( | list | l | ) |
Performs an unstable sort in descending order and returns the new list.
This variant will only sort basic data types
l | the list to sort |
list Qore::sortDescending | ( | list | l, |
string | func | ||
) |
Performs an unstable sort in descending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
list Qore::sortDescending | ( | list | l, |
code | f | ||
) |
Performs an unstable sort in descending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the code must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::sortDescendingStable | ( | any | arg | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::sortDescendingStable | ( | list | l | ) |
Performs a stable sort in descending order and returns the new list.
This variant will only sort basic data types
l | the list to sort |
list Qore::sortDescendingStable | ( | list | l, |
string | func | ||
) |
Performs a stable sort in descending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
list Qore::sortDescendingStable | ( | list | l, |
code | f | ||
) |
Performs a stable sort in descending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the code must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
any Qore::sortStable | ( | any | arg | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::sortStable | ( | list | l | ) |
Performs a stable sort in ascending order and returns the new list.
This variant will only sort basic data types
l | the list to sort |
list Qore::sortStable | ( | list | l, |
string | func | ||
) |
Performs a stable sort in ascending order and returns the new list; accepts the name of a function to use to sort complex data types or to give a special sort order.
l | the list to sort |
func | the name of a function accessible in the current scope that accepts 2 arguments of the data type in the list; the function must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |
list Qore::sortStable | ( | list | l, |
code | f | ||
) |
Performs a stable sort in ascending order and returns the new list; accepts a call reference or a closure to use to sort complex data types or to give a special sort order.
l | the list to sort |
f | a call reference or a closure that accepts 2 arguments of the data type in the list; the code must return -1, 0, or 1 if the first is less than the second, if the first and second are equal, or if the first is greater than the second, respectively |