ee.List.flatten
Flattens any sublists into a single list.
Usage | Returns |
---|
List.flatten() | List |
Argument | Type | Details |
---|
this: list | List | |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Flattens a nested list (list containing sublists) into a single, flat list containing all the elements."],["The `flatten` function operates on a given list and transforms it into a new list with all sublist elements merged into the top level."],["It simplifies list structures by removing hierarchy and presenting all elements in a sequential order."]]],["The `List.flatten()` function transforms a list containing sublists into a single, flattened list. It takes one argument, `this: list`, which represents the list to be flattened. The function returns a new `List` object containing all elements from the original list and its sublists, now merged into a single level. No other input parameters or customization options are available.\n"]]