Name:
sort
sorts a list of real numbers.
Library name:
sollya_obj_t sollya_lib_sort(sollya_obj_t)
Usage:
sort
(
L
) :
list
->
list
Parameters:
L
is a list.
Description:
If
L
contains only constant values,
sort
(
L
) returns the same list, but sorted in increasing order.
If
L
contains at least one element that is not a constant, the command fails with a type error.
If
L
is an end-elliptic list,
sort
will fail with an error.
Example 1:
> sort([| |]);
[| |]
> sort([|2,3,5,2,1,4|]);
[|1, 2, 2, 3, 4, 5|]
Go back to the list of commands