Skip to content

Instantly share code, notes, and snippets.

@minikomi
Created April 16, 2012 07:09
Show Gist options
  • Save minikomi/2396863 to your computer and use it in GitHub Desktop.
Save minikomi/2396863 to your computer and use it in GitHub Desktop.
package main
import "tour/tree"
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int)
// Same determines whether the trees
// t1 and t2 contain the same values.
func Same(t1, t2 *tree.Tree) bool {
if t1.value == t2.value {
return true
}
return false
}
func main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment