ee.List.map
Map an algorithm over a list. The algorithm is expected to take an Object and return an Object.
Usage | Returns |
---|
List.map(baseAlgorithm, dropNulls) | List |
Argument | Type | Details |
---|
this: list | List | |
baseAlgorithm | Algorithm | |
dropNulls | Boolean, default: false | If true, the mapped algorithm is allowed to return nulls, and the elements for which it returns nulls will be dropped. |
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."],[[["`List.map()` applies a given algorithm to each element of a list, transforming the original list into a new one with the results."],["The provided `baseAlgorithm` should accept an object as input and return a modified object as output."],["By enabling the optional `dropNulls` parameter, you can filter out elements from the resulting list where the algorithm returns null."]]],[]]