Tree

mill.main.buildgen.Tree
See theTree companion object
case class Tree[+Node](node: Node, children: Seq[Tree[Node]])

A recursive data structure that defines parent-child relationships between nodes.

Value parameters

children

the child subtrees of this tree

node

the root node of this tree

Attributes

Companion
object
Source
Tree.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[Out](f: Node => Out): Tree[Out]

Attributes

Source
Tree.scala
def nodes(traversal: Traversal): Generator[Node]

Attributes

Source
Tree.scala
def subtrees(traversal: Traversal): Generator[Tree[Node]]

Attributes

Source
Tree.scala
def transform[Out](f: (Node, IterableOnce[Tree[Out]]) => Tree[Out]): Tree[Out]

Attributes

Source
Tree.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product