Qore Programming Language Reference Manual 2.0.0
|
Functions | |
bool | Qore::inlist () |
This function variant does nothing at all. | |
bool | Qore::inlist (any arg, nothing x) |
This function variant does nothing at all. | |
bool | Qore::inlist (auto arg, softlist< auto > 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. | |
bool | Qore::inlist_hard () |
This function variant does nothing at all. | |
bool | Qore::inlist_hard (any arg, nothing x) |
This function variant does nothing at all. | |
bool | Qore::inlist_hard (auto arg, softlist< auto > 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. | |
auto | Qore::max (list< auto > l) |
Returns the maximum value in a list. | |
auto | Qore::max (list< auto > l, string func) |
Returns the maximum value in a list. | |
auto | Qore::max (list< auto > l, code f) |
Returns the maximum value in a list. | |
auto | Qore::max (...) |
Returns the maximum value of the arguments passed to the function. | |
auto | Qore::min (list< auto > l) |
Returns the minumum value in a list. | |
auto | Qore::min (list< auto > l, string func) |
Returns the minumum value in a list. | |
auto | Qore::min (list< auto > l, code f) |
Returns the minumum value in a list. | |
auto | Qore::min (...) |
Returns the minumum value of the arguments passed to the function. | |
list< int > | Qore::range (int start, int stop, int step=1) |
Returns a list containing an arithmetic progression of integers. | |
list< int > | Qore::range (int stop) |
Returns a list containing an arithmetic progression of integers with start = 0 and step = 1. | |
nothing | Qore::reverse () |
This function variant does nothing at all. | |
list< auto > | Qore::reverse (list< auto > l) |
Reverses a list and returns the new list. | |
auto | Qore::sort (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sort (list< auto > l) |
Performs an unstable sort in ascending order and returns the new list. | |
list< auto > | Qore::sort (list< auto > l, string func) |
Performs an unstable sort in ascending order and returns the new list. | |
list< auto > | Qore::sort (list< auto > l, code f) |
Performs an unstable sort in ascending order and returns the new list. | |
auto | Qore::sortDescending (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sortDescending (list< auto > l) |
Performs an unstable sort in descending order and returns the new list. | |
list< auto > | Qore::sortDescending (list< auto > l, string func) |
Performs an unstable sort in descending order and returns the new list. | |
list< auto > | Qore::sortDescending (list< auto > l, code f) |
Performs an unstable sort in descending order and returns the new list. | |
auto | Qore::sortDescendingStable (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sortDescendingStable (list< auto > l) |
Performs a stable sort in descending order and returns the new list. | |
list< auto > | Qore::sortDescendingStable (list< auto > l, string func) |
Performs a stable sort in descending order and returns the new list. | |
list< auto > | Qore::sortDescendingStable (list< auto > l, code f) |
Performs a stable sort in descending order and returns the new list. | |
auto | Qore::sortStable (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sortStable (list< auto > l) |
Performs a stable sort in ascending order and returns the new list. | |
list< auto > | Qore::sortStable (list< auto > l, string func) |
Performs a stable sort in ascending order and returns the new list. | |
list< auto > | Qore::sortStable (list< auto > l, code f) |
Performs a stable sort in ascending order and returns the new list. | |
auto | Qore::sort_descending (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sort_descending (list< auto > l) |
Performs an unstable sort in descending order and returns the new list. | |
list< auto > | Qore::sort_descending (list< auto > l, string func) |
Performs an unstable sort in descending order and returns the new list. | |
list< auto > | Qore::sort_descending (list< auto > l, code f) |
Performs an unstable sort in descending order and returns the new list. | |
auto | Qore::sort_descending_stable (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sort_descending_stable (list< auto > l) |
Performs a stable sort in descending order and returns the new list. | |
list< auto > | Qore::sort_descending_stable (list< auto > l, string func) |
Performs a stable sort in descending order and returns the new list. | |
list< auto > | Qore::sort_descending_stable (list< auto > l, code f) |
Performs a stable sort in descending order and returns the new list. | |
auto | Qore::sort_stable (auto arg) |
This function variant does nothing at all. | |
list< auto > | Qore::sort_stable (list< auto > l) |
Performs a stable sort in ascending order and returns the new list. | |
list< auto > | Qore::sort_stable (list< auto > l, string func) |
Performs a stable sort in ascending order and returns the new list. | |
list< auto > | Qore::sort_stable (list< auto > l, code f) |
Performs a stable sort in ascending order and returns the new list. | |
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
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
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
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
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 |
auto Qore::max | ( | ... | ) |
Returns the maximum value in a list.
This variant will only work on basic data types
l | the list to process |
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 |
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 |
auto Qore::min | ( | ... | ) |
Returns the minumum value in a list.
This variant will only work on basic data types
l | the list to process |
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 |
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 |
Returns a list containing an arithmetic progression of integers.
start | the initial value |
stop | the upper limit |
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 |
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
Reverses a list and returns the new list.
l | the list to 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
Performs an unstable sort in ascending order and returns the new list.
This variant will only sort basic data types
l | the list to sort |
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 |
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 |
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
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 |
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 |
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 |
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
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 |
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 |
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 |
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
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 |
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 |
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 |
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
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 |
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 |
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 |
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
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 |
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 |
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 |
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
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 |
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 |
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 |