Show / Hide Table of Contents

Class Trie

Extension methods for ITrie<T> and ITrie<T, TData>.

Inheritance
System.Object
Trie
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class Trie : object

Methods

| Improve this Doc View Source

Add<T, TData>(ITrie<T, TData>, TData, Action<Action<T>>)

Adds a value.

Declaration
public static void Add<T, TData>(this ITrie<T, TData> trie, TData value, Action<Action<T>> stepper)
Parameters
Type Name Description
ITrie<T, TData> trie

The trie to add the value to.

TData value

The value to be added.

Action<Action<T>> stepper

The keys of the relative value.

Type Parameters
Name Description
T

The type of value.

TData

The type of the data.

| Improve this Doc View Source

Get<T, TData>(ITrie<T, TData>, Action<Action<T>>)

Gets a value.

Declaration
public static TData Get<T, TData>(this ITrie<T, TData> trie, Action<Action<T>> stepper)
Parameters
Type Name Description
ITrie<T, TData> trie

The trie to get the value from.

Action<Action<T>> stepper

The keys of the relative value.

Returns
Type Description
TData

The value.

Type Parameters
Name Description
T

The type of value.

TData

The type of the data.

| Improve this Doc View Source

Remove<T, TData>(ITrie<T, TData>, Action<Action<T>>)

Removes a value.

Declaration
public static void Remove<T, TData>(this ITrie<T, TData> trie, Action<Action<T>> stepper)
Parameters
Type Name Description
ITrie<T, TData> trie

The trie to remove the value from.

Action<Action<T>> stepper

The keys to store the value relative to.

Type Parameters
Name Description
T

The type of value.

TData

The type of the data.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX