Safe Haskell | Safe |
---|
Control.Monad.MultiPass.Example.StringInterning
Description
An example of the use of the OrdCons
instrument. An array of strings is converted to an array of integer indices, with one index for each distinct string. This process is commonly known as string interning.
Documentation
internStringArray :: NumThreads -> ST2Array r w Int String -> ST2 r w (ST2Array r w Int Int, OrdConsTable String)Source