Closed FreeApophis closed 1 year ago
Chunk and SlidingWindow on a string return arrays of char. It would be nice to have specific overloads which return strings instead.
"abcdefghij".StringChunk(3) would returns "abc", "def", "ghi" "j"
"abcdefghij".StringChunk(3)
"abc", "def", "ghi" "j"
"abcdef".StringSlidingWindows(3) would returns "abc", "bcd", "cde" "def"
"abcdef".StringSlidingWindows(3)
"abc", "bcd", "cde" "def"
Idea: Chunk on string @ sharplab
Chunk and SlidingWindow on a string return arrays of char. It would be nice to have specific overloads which return strings instead.
"abcdefghij".StringChunk(3)
would returns"abc", "def", "ghi" "j"
"abcdef".StringSlidingWindows(3)
would returns"abc", "bcd", "cde" "def"