ee.List.zip
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Kombiniert die Elemente zweier Listen, um eine Liste mit Listen mit zwei Elementen zu erstellen. Wenn die Eingabelisten unterschiedlich groß sind, hat die endgültige Liste dieselbe Größe wie die kürzeste Liste.
Nutzung | Ausgabe |
---|
List.zip(other) | Liste |
Argument | Typ | Details |
---|
So gehts: list | Liste | |
other | Liste | |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eList.zip\u003c/code\u003e combines two lists by pairing corresponding elements, creating a new list of two-element lists.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting list's length is determined by the shorter of the two input lists, ensuring all elements have a pair.\u003c/p\u003e\n"]]],["Combines two lists into a single list of two-element lists, pairing corresponding elements. The resulting list's length matches the shorter of the two input lists. The `List.zip(other)` function takes two list arguments: `this`, representing the initial list, and `other`, the second list. It returns a new List containing paired elements. If the lists are of differing lengths, extra items in the longer list are not included.\n"],null,["# ee.List.zip\n\nPairs the elements of two lists to create a list of two-element lists. When the input lists are of different sizes, the final list has the same size as the shortest one.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------|---------|\n| List.zip`(other)` | List |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |\n| `other` | List | |"]]