anagrammer

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: GPL-3.0 Imports: 6 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

Variables

View Source
var Dawgs map[string]*dawgInfo

Functions

func Anagram

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

func LoadDawgs added in v0.0.6

func LoadDawgs(dawgPath string)

Types

type AnagramMode added in v0.0.5

type AnagramMode int
const (
	ModeBuild AnagramMode = iota
	ModeExact
	ModePattern
)

type AnagramStruct added in v0.0.6

type AnagramStruct struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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