Qurak

Split

可用

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}}

使用於

主題

相關

全部 6300 個函式 · 從 MCP 用戶端使用這個