Qurak

FindTransientRepeat

可用

Split a sequence into {transient repeat} where repeat is the shortest end-cycle occurring at least n times

FindTransientRepeat[list, n]
FindTransientRepeat[string, n]
FindTransientRepeat["abcdedede", 2] → {abc, de}FindTransientRepeat[{1, 2, 1, 2, 1, 2}, 3] → {{}, {1, 2}}FindTransientRepeat[{RGBColor[1, 1, 0], RGBColor[0, 0, 1], RGBColor[1, 0, 0], RGBColor[0, 1, 0], RGBColor[1, 0, 0], RGBColor[0, 1, 0], RGBColor[1, 0, 0], RGBColor[0, 1, 0]}, 2] → {{RGBColor[1, 1, 0], RGBColor[0, 0, 1]}, {RGBColor[1, 0, 0], RGBColor[0, 1, 0]}}

主題

相關

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