bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Data.List

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • List-operations.
  • CAVEAT: import qualified to avoid clash with List.
Synopsis

Functions

findClosest Source #

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.

unabbreviate Source #

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.