anagrammer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package anagrammer uses a DAWG instead of a GADDAG to simplify the algorithm and make it potentially faster - we don't need a GADDAG to generate anagrams/subanagrams.

This package generates anagrams and subanagrams and has an RPC interface.

Index

Constants

View Source
const BlankPos = 31

Variables

This section is empty.

Functions

func Anagram

func Anagram(letters string, dawg gaddag.SimpleDawg, mode AnagramMode) []string

Types

type AnagramMode added in v0.0.5

type AnagramMode int
const (
	ModeBuild AnagramMode = iota
	ModeExact
)

type AnagramService added in v0.0.2

type AnagramService struct{}

func (*AnagramService) Anagram added in v0.0.2

type AnagramServiceArgs added in v0.0.2

type AnagramServiceArgs struct {
	Letters string
	Mode    string
}

type AnagramServiceReply added in v0.0.2

type AnagramServiceReply struct {
	Words []string
}

Jump to

Keyboard shortcuts

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