ee.List.getNumber
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מחזירה את המספר במיקום שצוין ברשימה. אינדקס שלילי סופר אחורה מסוף הרשימה. אם הערך הוא לא מספר, תופיע שגיאה.
שימוש | החזרות |
---|
List.getNumber(index) | מספר |
ארגומנט | סוג | פרטים |
---|
זה: list | רשימה | |
index | מספר שלם | |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThis function retrieves a number from a given position within a list.\u003c/p\u003e\n"],["\u003cp\u003eNegative indexing allows accessing elements from the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eProviding a non-numeric value or an index outside the list range results in an error.\u003c/p\u003e\n"],["\u003cp\u003eThe function is used by calling \u003ccode\u003eList.getNumber()\u003c/code\u003e and providing the desired index as an argument.\u003c/p\u003e\n"]]],[],null,["# ee.List.getNumber\n\nReturns the number at the specified position in list. A negative index counts backwards from the end of the list. If the value is not a number, an error will occur.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| List.getNumber`(index)` | Number |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `index` | Integer | |"]]