Skip to content

Commit

Permalink
document
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Oct 13, 2024
1 parent 4e0cc01 commit 2348ac8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ type Node[K cmp.Ordered, V any] interface {
// Parent returns the parent of this node
Parent() Node[K, V]

// Ancestors returns a sequence of ancestors of this node
// Ancestors returns a sequence of ancestors of this node.
// The first element is the root element, progressing all the way
// up to the parent of this node.
Ancestors() iter.Seq[Node[K, V]]
}

Expand Down

0 comments on commit 2348ac8

Please sign in to comment.