Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.rotate
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eRotates the elements of a list by a specified distance, shifting elements to the left or right based on the \u003ccode\u003edistance\u003c/code\u003e value.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erotate()\u003c/code\u003e method modifies the original list and returns the modified list, enabling chained operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edistance\u003c/code\u003e 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.\u003c/p\u003e\n"]]],[],null,["# ee.List.rotate\n\nRotates the elements of the list by the specified distance.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| List.rotate`(distance)` | List |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `distance` | Integer | |"]]