ee.List.rotate
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस फ़ंक्शन की मदद से, सूची के एलिमेंट को तय की गई दूरी के हिसाब से घुमाया जाता है.
इस्तेमाल | रिटर्न |
---|
List.rotate(distance) | सूची |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: list | सूची | |
distance | पूर्णांक | |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (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 | |"]]