trie

package
v0.0.0-...-c98f1fc Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iter

type Iter struct {
	At    *Node
	Index int
}

func (Iter) Match

func (it Iter) Match() bool

func (Iter) Valid

func (it Iter) Valid() bool

func (Iter) Walk

func (it Iter) Walk(r rune) Iter

type Node

type Node struct {
	Label  rune
	Term   bool
	Suffix string
	Edges  []Node
}

func (*Node) Contains

func (n *Node) Contains(word string) bool

func (*Node) Insert

func (n *Node) Insert(word string)

func (*Node) Pos

func (n *Node) Pos(label rune) (int, bool)

Jump to

Keyboard shortcuts

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