nlpwp/book — Issue #5: Section 3.7 : containsWithFreq missing
Author: hmf
Created: 2011-10-21 08:08:24+00:00
State: open

The definition of "containsWithFreq" is missing.
I assume it is something like:

```Haskell
containsWithFreq :: Ord a => SuffixArray a -> V.Vector a -> Maybe Int
containsWithFreq s e =
frequency (restrict eLen s) e
where eLen = V.length e
restrict len = V.map (V.take len) . elems
```