The functional-kmp package

[maintain]

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.

For example:

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

Properties

Versions0.1.0.0, 0.1.0.0
Dependenciesbase (==4.*) [details]
LicenseBSD3
Authormniip
Maintainermniip@mniip.com
CategoryData
Home pagehttp://github.com/mniip/functional-kmp
Source repositoryhead: git clone http://github.com/mniip/functional-kmp.git
UploadedThu Nov 12 01:49:29 UTC 2015 by mniip

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees