사용자가 제공한 함수를 컬렉션의 각 요소에 적용합니다. 사용자가 제공한 함수에는 두 개의 인수가 제공됩니다. 현재 요소와 이전 iterate() 호출에서 반환된 값 또는 첫 번째 반복의 경우 첫 번째 인수입니다. 결과는 사용자가 제공한 함수에 대한 최종 호출에서 반환된 값입니다.
Collection.iterate() 호출의 결과를 반환합니다.
사용
반환 값
ImageCollection.iterate(algorithm, first)
ComputedObject
인수
유형
세부정보
다음과 같은 경우: collection
컬렉션
컬렉션 인스턴스입니다.
algorithm
함수
각 요소에 적용할 함수입니다. 컬렉션의 요소와 이전 반복의 값을 두 개의 인수로 가져야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-26(UTC)"],[],["`iterate()` applies a user-defined function to each collection element. This function receives the current element and the prior iteration's result as arguments. The process starts with an optional initial state (`first`). The final output is the value produced by the user-defined function's last execution. It's used on a `Collection` with the `algorithm` being a function and `first` as optional. It returns a `ComputedObject`.\n"]]