ee.List.lastIndexOfSubList
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca pozycję początkową ostatniego wystąpienia elementu docelowego na liście lub -1, jeśli takie wystąpienie nie istnieje.
Wykorzystanie | Zwroty |
---|
List.lastIndexOfSubList(target) | Liczba całkowita |
Argument | Typ | Szczegóły |
---|
to: list | Lista | |
target | Lista | |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `lastIndexOfSubList` function searches a list for the last occurrence of a target sublist. It takes two arguments: the main list and the target sublist. The function returns an integer representing the starting index of the target's last occurrence within the list. If the target is not found, it returns -1. The function is designed for lists and sublists.\n"],null,[]]