| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.Text.AutoComplete
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Autocomplete a truncated word.
Synopsis
- autoComplete :: [String] -> String -> String
Functions
Arguments
| :: [String] | Choices |
| -> String | Words, the first of which may be replaced if an unambiguous completion can be found. |
| -> String |
- Replace the first word from the specified string, with any item from the specified list, of which it's an unambiguously prefix.
- N.B.: the comparison is case-insensitive, but the replacement preserves the case supplied in the choices.