ee.List.getNumber
Returns 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.
Usage | Returns |
---|
List.getNumber(index) | Number |
Argument | Type | Details |
---|
this: list | List | |
index | 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 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["This function retrieves a number from a given position within a list."],["Negative indexing allows accessing elements from the end of the list."],["Providing a non-numeric value or an index outside the list range results in an error."],["The function is used by calling `List.getNumber()` and providing the desired index as an argument."]]],[]]