Name:
revert
reverts a list.
Library name:
sollya_obj_t sollya_lib_revert(sollya_obj_t)
Usage:
revert
(
L
) :
list
->
list
Parameters:
L
is a list.
Description:
revert
(
L
) returns the same list, but with its elements in reverse order.
If
L
is an end-elliptic list,
revert
will fail with an error.
Example 1:
> revert([| |]);
[| |]
Example 2:
> revert([|2,3,5,2,1,4|]);
[|4, 1, 2, 5, 3, 2|]
Go back to the list of commands