Split
Khả dụng
Splits list at boundaries where consecutive elements differ.
Split[list]
Split[list, test]
Split[{1, 1, 2, 2, 3}]
→ {{1, 1}, {2, 2}, {3}}Split[{a, a, b, c, c, c}]
→ {{a, a}, {b}, {c, c, c}} Tất cả 6300 hàm ·
Dùng cái này từ một client MCP