Qore Programming Language Reference Manual
0.9.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 (auto 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 (auto 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... | |
auto | Qore::max (list l) |
Returns the maximum value in a list. More... | |
auto | 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... | |
auto | 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... | |
auto | Qore::max (...) |
Returns the maximum value of the arguments passed to the function. More... | |
auto | Qore::min (list l) |
Returns the minumum value in a list. More... | |
auto | 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... | |
auto | 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... | |
auto | 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... | |
auto | Qore::sort (auto 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... | |
auto | Qore::sortDescending (auto 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... | |
auto | Qore::sortDescendingStable (auto 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... | |
auto | Qore::sortStable (auto 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... | |
auto | Qore::sort_descending (auto 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_descending (list l) |
Performs an unstable sort in descending order and returns the new list. More... | |
list | Qore::sort_descending (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::sort_descending (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... | |
auto | Qore::sort_descending_stable (auto 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_descending_stable (list l) |
Performs a stable sort in descending order and returns the new list. More... | |
list | Qore::sort_descending_stable (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::sort_descending_stable (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... | |
auto | Qore::sort_stable (auto 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_stable (list l) |
Performs a stable sort in ascending order and returns the new list. More... | |
list | Qore::sort_stable (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::sort_stable (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 | ( | auto | 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 | ( | auto | 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 |
auto Qore::max | ( | list | l | ) |
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::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 |
auto Qore::max | ( | ... | ) |
auto Qore::min | ( | list | l | ) |
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 |
auto 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 |
auto Qore::min | ( | ... | ) |
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 |
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.
auto Qore::sort | ( | auto | 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.
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 |
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 |
auto Qore::sort_descending | ( | auto | 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.
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 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 |
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 |
auto Qore::sort_descending_stable | ( | auto | 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.
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 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 |
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 |
auto Qore::sort_stable | ( | auto | 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.
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 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 |
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 |
auto Qore::sortDescending | ( | auto | 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.
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 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 |
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 |
auto Qore::sortDescendingStable | ( | auto | 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.
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 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 |
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 |
auto Qore::sortStable | ( | auto | 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.
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 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 |
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 |