ee.List.insert
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
عنصر را در مکان مشخص شده در لیست درج می کند. یک شاخص منفی از انتهای لیست به عقب محاسبه می شود.
استفاده | برمی گرداند | List. insert (index, element) | فهرست کنید |
استدلال | تایپ کنید | جزئیات | این: list | فهرست کنید | |
index | عدد صحیح | |
element | شیء | |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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 | |"]]