ee.List.insert
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सूची में बताई गई जगह पर एलिमेंट डालता है. नेगेटिव इंडेक्स, सूची के आखिर से पीछे की ओर गिनती करता है.
इस्तेमाल | रिटर्न |
---|
List.insert(index, element) | सूची |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: list | सूची | |
index | पूर्णांक | |
element | ऑब्जेक्ट | |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eThe \u003ccode\u003einsert\u003c/code\u003e method adds an element to a list at a specific position.\u003c/p\u003e\n"],["\u003cp\u003eNegative index values can be used to insert elements relative to the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einsert\u003c/code\u003e method modifies the original list and returns the updated list.\u003c/p\u003e\n"]]],[],null,["# ee.List.insert\n\nInserts element at the specified position in list. A negative index counts backwards from the end of the list.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| List.insert`(index, element)` | List |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `index` | Integer | |\n| `element` | Object | |"]]