ee.List.indexOfSublist
Returns the starting position of the first occurrence of target within list, or -1 if there is no such occurrence.
Usage | Returns |
---|
List.indexOfSublist(target) | Integer |
Argument | Type | Details |
---|
this: list | List | |
target | 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."],[[["This method searches for the first occurrence of a specific sublist (target) within a larger list."],["It returns the starting index (position) of the sublist if found, otherwise, it returns -1."],["The method is used by calling `indexOfSublist` on the main list and providing the target sublist as an argument."]]],[]]