ee.List.rotate
Rotates the elements of the list by the specified distance.
Usage | Returns | List.rotate(distance) | List |
Argument | Type | Details | this: list | List | |
distance | Integer | |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Rotates the elements of a list by a specified distance, shifting elements to the left or right based on the `distance` value."],["The `rotate()` method modifies the original list and returns the modified list, enabling chained operations."],["`distance` is an integer argument that determines the rotation direction and magnitude, with positive values rotating elements to the right and negative values to the left."]]],[]]