lexicon

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptAll

type AcceptAll struct {
	Alph *alphabet.Alphabet
}

func (AcceptAll) GetAlphabet

func (lex AcceptAll) GetAlphabet() *alphabet.Alphabet

func (AcceptAll) HasAnagram

func (lex AcceptAll) HasAnagram(word Word) bool

func (AcceptAll) HasWord

func (lex AcceptAll) HasWord(word Word) bool

func (AcceptAll) Name

func (lex AcceptAll) Name() string

type Lexicon

type Lexicon interface {
	Name() string
	GetAlphabet() *alphabet.Alphabet
	HasWord(word Word) bool
	HasAnagram(word Word) bool
}

type Word

type Word = alphabet.MachineWord

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL