ee.List.flatten
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รวมรายการย่อยทั้งหมดไว้เป็นรายการเดียว
การใช้งาน | การคืนสินค้า |
---|
List.flatten() | รายการ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ list | รายการ | |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eFlattens a nested list (list containing sublists) into a single, flat list containing all the elements.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eflatten\u003c/code\u003e function operates on a given list and transforms it into a new list with all sublist elements merged into the top level.\u003c/p\u003e\n"],["\u003cp\u003eIt simplifies list structures by removing hierarchy and presenting all elements in a sequential order.\u003c/p\u003e\n"]]],["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"],null,["# ee.List.flatten\n\nFlattens any sublists into a single list.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------|---------|\n| List.flatten`()` | List |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |"]]