scalax.data.collection

object Tree

[source: scalax/data/collection.scala]

object Tree
extends AnyRef
A simple tree class where each node (Tree) is a Leaf or a Branch, and each Branch contains a list of other Trees.
Method Summary
def treeFromFanouts [a](gen : => a, fanouts : scala.Seq[Int]) : Tree[a]
Build a tree whose i-th level branch has a fanout of xs(i).
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
case class Branch [a](val ts : scala.Seq[Tree[a]]) extends Tree[a] with scala.Product
case class Leaf [a](val x : a) extends Tree[a] with scala.Product
abstract class Tree [a] extends AnyRef
A simple tree class where each node (Tree) is a Leaf or a Branch, and each Branch contains a list of other Trees.
Method Details
def treeFromFanouts[a](gen : => a, fanouts : scala.Seq[Int]) : Tree[a]
Build a tree whose i-th level branch has a fanout of xs(i).


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.