Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.repeat
Stay organized with collections
Save and categorize content based on your preferences.
Returns a new list containing value repeated count times.
Usage | Returns | ee.List.repeat(value, count) | List |
Argument | Type | Details | value | Object | The value to repeat. |
count | Integer | The number of times to repeat. |
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-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["\u003cp\u003e\u003ccode\u003eee.List.repeat()\u003c/code\u003e generates a new list by repeating a specified value a certain number of times.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts two arguments: the \u003ccode\u003evalue\u003c/code\u003e to be repeated and the \u003ccode\u003ecount\u003c/code\u003e representing the number of repetitions.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a new \u003ccode\u003eee.List\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# ee.List.repeat\n\nReturns a new list containing value repeated count times.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| `ee.List.repeat(value, count)` | List |\n\n| Argument | Type | Details |\n|----------|---------|--------------------------------|\n| `value` | Object | The value to repeat. |\n| `count` | Integer | The number of times to repeat. |"]]