Scalax
|
|
scalax/data/collection.scala
]
object
Tree
extends
AnyRefMethod 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 |
Scalax
|
|