Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.indexOfSublist
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eThis method searches for the first occurrence of a specific sublist (target) within a larger list.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the starting index (position) of the sublist if found, otherwise, it returns -1.\u003c/p\u003e\n"],["\u003cp\u003eThe method is used by calling \u003ccode\u003eindexOfSublist\u003c/code\u003e on the main list and providing the target sublist as an argument.\u003c/p\u003e\n"]]],[],null,["# ee.List.indexOfSublist\n\nReturns the starting position of the first occurrence of target within list, or -1 if there is no such occurrence.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| List.indexOfSublist`(target)` | Integer |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |\n| `target` | List | |"]]