Qurak

SplitBy

ใช้งานได้

Splits list at boundaries where a function changes value.

SplitBy[list, f]
SplitBy[list, {f1, f2, …}]
SplitBy[f]
SplitBy[{1, 2, 3, 4, 5}, EvenQ] → {{1}, {2}, {3}, {4}, {5}}

หัวข้อ

ที่เกี่ยวข้อง

ฟังก์ชันทั้งหมด 6300 รายการ · ใช้สิ่งนี้จากไคลเอนต์ MCP