| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.Data.List
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION
- List-operations.
- CAVEAT: import qualified to avoid clash with
List.
Synopsis
- findClosest :: Eq a => [a] -> [[a]] -> [[a]]
- unabbreviate :: Eq a => ([a] -> [a]) -> [[a]] -> [a] -> [a]
Functions
Arguments
| :: Eq a | |
| => [a] | Item. |
| -> [[a]] | Choices. |
| -> [[a]] |
- Find the closest to the single item supplied, from the supplied choices.
- All choices of equal proximity are returned.
- CAVEAT: when applied to Strings, case-sensitivity should be considered by the caller.
Arguments
| :: Eq a | |
| => ([a] -> [a]) | Translate. |
| -> [[a]] | Choices |
| -> [a] | Abbreviation. |
| -> [a] |
Replace the abbreviated item with any item from the specified list, of which it's an unambiguously prefix.