github.com/mymmsc/gox@v1.3.33/util/trees.go (about) 1 // Copyright (c) 2015, Emir Pasic. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package trees provides an abstract Tree interface. 6 // 7 // In computer science, a tree is a widely used abstract data type (ADT) or data structure implementing this ADT that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes. 8 // 9 // Reference: https://en.wikipedia.org/wiki/Tree_%28data_structure%29 10 package util 11 12 // Tree interface that all trees implement 13 type Tree interface { 14 Container 15 // Empty() bool 16 // Size() int 17 // Clear() 18 // Values() []interface{} 19 }