ee.List.repeat
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca nową listę zawierającą wartość powtórzoną określoną liczbę razy.
Wykorzystanie | Zwroty |
---|
ee.List.repeat(value, count) | Lista |
Argument | Typ | Szczegóły |
---|
value | Obiekt | Wartość do powtórzenia. |
count | Liczba całkowita | Liczba powtórzeń. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-29 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-29 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. |"]]