bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Text.AutoComplete

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Autocomplete a truncated word.
Synopsis

Functions

autoComplete Source #

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.