The functional-kmp package
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
A few efficient list-processing functions using the prefix-function, which is defined as:
(prefixFun xs) !! i
is the length of the largest proper substring of xs ending at position i, such that it equals the beginning of xs.
.-----. .-----. a b a c a b a a a b a b a c d 0 0 1 0 1 2 3 1 1 2 3 2 3 4 0 ^
The marked substrings are equal, hence the value at the marked location is their length, 4.
|Change log||None available|
|Dependencies||base (==4.*) [details]|
|Source repository||head: git clone http://github.com/mniip/functional-kmp.git|
|Uploaded||Thu Nov 12 01:49:29 UTC 2015 by mniip|
- functional-kmp-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (included in the package)
For package maintainers and hackage trustees