polyadic / funcky

Funcky is a Functional Library for C#
https://polyadic.github.io/funcky
Apache License 2.0
19 stars 3 forks source link

Specializations for type `string` for `Chunk` and `SlidingWindow` #731

Closed FreeApophis closed 1 year ago

FreeApophis commented 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"

"abcdef".StringSlidingWindows(3) would returns "abc", "bcd", "cde" "def"

FreeApophis commented 1 year ago

Idea: Chunk on string @ sharplab